具有模式敏感語法突出顯示的編輯器

具有模式敏感語法突出顯示的編輯器

是否有支援以下(有些特殊)語法突出顯示的文字編輯器。我希望能夠為數學模式和普通模式設定不同的背景顏色。 (我意識到這可能很棘手,因為必須考慮「嵌套」。但是,近似值就可以了。)

我注意到很多 TeX 人都非常信賴 Emacs/AUCTeX。它可以設定為產生我想要的語法突出顯示嗎?如果是這樣,怎麼辦?

答案1

對於 emacs,請查看font-latex-math-face.在文件中提到的地方(customize this face),您可以按一下該文字以將其帶到 GUI 以透過預覽設定各種屬性。

Face: font-latex-math-face (sample) (customize this face)

Documentation:
Face used to highlight math.

Defined in `font-latex.el'.

           Family: unspecified
          Foundry: unspecified
            Width: unspecified
           Height: unspecified
           Weight: unspecified
            Slant: unspecified
       Foreground: #AE81FF
DistantForeground: unspecified
       Background: unspecified    <--- note
        Underline: unspecified
         Overline: unspecified
   Strike-through: unspecified
              Box: unspecified
          Inverse: unspecified
          Stipple: unspecified
             Font: unspecified
          Fontset: unspecified
          Inherit: unspecified

相關內容