[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Colourising tex keywords
From: |
fatiparty |
Subject: |
Colourising tex keywords |
Date: |
Tue, 11 Jan 2022 17:40:26 +0100 (CET) |
--
Sent with Tutanota, the secure & ad-free mailbox.
Jan 12, 2022, 01:22 by help-gnu-emacs@gnu.org:
> fatiparty--- via Users list for the GNU Emacs text editor wrote:
>
>> Have constructed a set of tex symbols stored in (defvar
>> texcom-colour
>>
>> I want to highlight tex commands such as \alpha using colour
>>
>
> See if this works in Emacs Lisp mode, if/when it does (it does
> here) do the same for your mode, if it doesn't work there,
> well then something is up ...
>
I have done as you suggested using (font-lock-add-keywords 'texi-mode
The tex keywords still do not get highlighted.
> (font-lock-add-keywords 'emacs-lisp-mode
> '(
> ("font-lock-builtin-face" . font-lock-builtin-face)
> ("font-lock-comment-delimiter-face" . font-lock-comment-delimiter-face)
> ("font-lock-comment-face" . font-lock-comment-face)
> ("font-lock-constant-face" . font-lock-constant-face)
> ("font-lock-doc-face" . font-lock-doc-face)
> ("font-lock-function-name-face" . font-lock-function-name-face)
> ("font-lock-keyword-face" . font-lock-keyword-face)
> ("font-lock-negation-char-face" . font-lock-negation-char-face)
> ("font-lock-preprocessor-face" . font-lock-preprocessor-face)
> ("font-lock-reference-face" . font-lock-reference-face)
> ("font-lock-regexp-grouping-backslash" .
> 'font-lock-regexp-grouping-backslash)
> ("font-lock-regexp-grouping-construct" .
> 'font-lock-regexp-grouping-construct)
> ("font-lock-string-face" . font-lock-string-face)
> ("font-lock-type-face" . font-lock-type-face)
> ("font-lock-variable-name-face" . font-lock-variable-name-face)
> ("font-lock-warning-face" . font-lock-warning-face)
> )
> t)
>
> --
> underground experts united
> https://dataswamp.org/~incal
>
- Colourising tex keywords, fatiparty, 2022/01/10
- Re: Colourising tex keywords, Emanuel Berg, 2022/01/11
- Colourising tex keywords,
fatiparty <=
- Re: Colourising tex keywords, Michael Heerdegen, 2022/01/11
- Colourising tex keywords, fatiparty, 2022/01/11
- Re: Colourising tex keywords, Michael Heerdegen, 2022/01/11
- Colourising tex keywords, fatiparty, 2022/01/11
- Re: Colourising tex keywords, Michael Heerdegen, 2022/01/11
- Re: Colourising tex keywords, fatiparty, 2022/01/11
- Re: Colourising tex keywords, Michael Heerdegen, 2022/01/11
- Message not available
- Colourising tex keywords, fatiparty, 2022/01/11
- Re: Colourising tex keywords, Michael Heerdegen, 2022/01/11
- Re: Colourising tex keywords, fatiparty, 2022/01/11