From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Special hilighting for comments Date: Sat, 10 Dec 2022 19:16:57 +0200 Message-ID: <83bkobw54m.fsf@gnu.org> References: <83lenfy8sh.fsf@gnu.org> <5Dc0oNSOvO6IdT1Q19A303nARjz0NjnAt01-brNNh_bv5i_ZDdtr0a7UpDtDcRhboVab_OPmhx3ojUfQOQi66BGMFdmNaT6fwBDykWzQ_EA=@protonmail.com> <83fsdny76f.fsf@gnu.org> <837cyzy0fw.fsf@gnu.org> <8G5PuSmODWraw7jK0Q3tIPzI7XiRoO5CQG3_gHh5Egkz_9nS3nRGR31nkkL-vrXl-u9rSo4QjMc72tefBKxMMsP2H6A9A7D_1rPkfeGU-lA=@protonmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="738"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 10 18:18:31 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p43Ub-000AY9-Hn for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 10 Dec 2022 18:18:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p43Tk-00035D-Q9; Sat, 10 Dec 2022 12:17:38 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p43TF-0002yh-Lz for help-gnu-emacs@gnu.org; Sat, 10 Dec 2022 12:17:16 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p43TE-0002Gt-22 for help-gnu-emacs@gnu.org; Sat, 10 Dec 2022 12:17:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=N+gpZOISV9C28oyy6oLu2ol+ckGfkF5HQf9KL1mZ8rM=; b=rKw+xpjOlTNJ 2Ysk/lJGm5A4WpIEiy/06yniwiZKBKJnQbtFGddQxJWS6stR/Iys3Qtl+BBva+eyZ5Hh/0czgsKl5 XAiumzDkVgXPgsCkaLkN2s3Cna1kBpQ5r7iVJOAblw7K+We9YF412D+w3uwYc+H8K/XKPB5MVxAEu b8/Hl+8Ng2ae/8usTkES1vzaO2UE5+HhWylQM6UEfmwFtX0a4SkkdJCVhfWUgrO44fZAw/vEFDpQX oz/rwO8oFCGVOm4T7G9K+ivkopLmB9UhJPwzc7ebjxOIMv1fop5Y5NB++DGYoB5/jlJi7hnUYeert SJXKFsJUzN1jv/63X9+nXA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p43TA-0003WN-CX for help-gnu-emacs@gnu.org; Sat, 10 Dec 2022 12:17:02 -0500 In-Reply-To: (message from Heime on Sat, 10 Dec 2022 17:11:38 +0000) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141587 Archived-At: > Date: Sat, 10 Dec 2022 17:11:38 +0000 > From: Heime > Cc: Eli Zaretskii , help-gnu-emacs@gnu.org > > > This works well: > > > > (highlight-regexp "^;; \\[.*$") > > Would it be possible to change only the foreground to some specified colour? Do you ever consult the built-in documentation before you ask questions here? Because the answer to that is right at your fingertips: just type M-x customize-group RET hi-lock RET and look there for relevant customizable settings (faces, in this case).