是否有支持以下(有点特殊的)语法高亮的文本编辑器。我希望能够为数学模式和普通模式设置不同的背景颜色。(我意识到这可能很棘手,因为必须考虑“嵌套”。但是,近似值也可以。)
我注意到很多 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