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 10:14:54 +0200 Message-ID: <83lenfy8sh.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4346"; 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 09:15:20 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 1p3v0x-0000tM-Mi for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 10 Dec 2022 09:15:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3v0g-0000IM-82; Sat, 10 Dec 2022 03:15:02 -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 1p3v0e-0000HA-UF for help-gnu-emacs@gnu.org; Sat, 10 Dec 2022 03:15:00 -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 1p3v0c-0006PI-6Y for help-gnu-emacs@gnu.org; Sat, 10 Dec 2022 03:15:00 -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=+k0aTmTbUDgrK34VQKOMglc0LzX3w3o4MxITGAoEUbw=; b=L8f61cAihdfS g6WJwCJsZ2KavJwW/vLpYzdMmqZcXMYWY3nJBQ14PH3g1ZGbPw9o9a7+qobJHCg2k9wxbVu8fbvzF VmSRlz9UEXvt8hLNYlHQbxh36sXQ7hppwRLyNBaIFE76uKMCBST66ADvx6Sn7FMTpfjGLlELlpE5D l1iO+UgHVJkRRSrwu3vfCotls/xIbjjAd4FMz2781wk4f9PuhgeEnMTBd82haoHorLP+yuG1A9s7e vRIqJL3FIFQYVvyRlR5WWjBL0+NAR8IA/UTA3bvwwvoG9i3xtW9dy4BWr/nPgxEmJn7rYiizIOF0x j5inA7KlO1+OkOkTz3U5rA==; 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 1p3v0b-0007Tc-Mp for help-gnu-emacs@gnu.org; Sat, 10 Dec 2022 03:14:58 -0500 In-Reply-To: (message from Heime on Sat, 10 Dec 2022 02:42:45 +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:141549 Archived-At: > Date: Sat, 10 Dec 2022 02:42:45 +0000 > From: Heime > > I have seen that emacs-lisp-mode allows the highlighting of some specially formatted comments using strings enclosed by single quotes 'this-thing'. This can be very useful beyond its intended use (highlighting function and variable names). > > For instance, I can use this to highlight the first comment with a different colour from the rest of the comments. > > But this special highlighting only works for function and variables names without spaces. > > So I cannot do the following to get 'A Remark here' highlighted in a different colour. > > ;; 'A Remark here' > ;; Some comment here > ;; Another comment here > ;; You are a hero > > Can the use of '' be extended so I can use the highlighting more generally as described. Or perhaps have an additional highlighting for more general things, separate from function and variable names. You can extend it if you want, but we won't, because that was specifically intended to highlight symbols, not arbitrary text.