Syntax highlighting in emacs. Marking different data types with different colours

前端 未结 2 1631
南笙
南笙 2021-01-04 21:26

In Emacs, is it possible to mark all variables of different data types with different colors? e.g. if I have the following variables in C/C++ my program

int         


        
2条回答
  •  天涯浪人
    2021-01-04 22:13

    No, it's not possible to selectively assign a given color to a given variable in emacs (or just for one given program).
    However, if it's just syntax highlighting you are looking for, of course, emacs will highlight most languages, and you can even create syntax highlighting for languages emacs would not know about.
    Ex. Smali: https://github.com/strazzere/Emacs-Smali

提交回复
热议问题