zlacker

[parent] [thread] 1 comments
1. aidenn+(OP)[view] [source] 2023-11-10 06:42:32
> so no editors really support this yet

Emacs and Vim have both supported this since at least last century.

replies(1): >>tmtvl+JI
2. tmtvl+JI[view] [source] 2023-11-10 13:37:11
>>aidenn+(OP)
To expand on this, Emacs uses a system called "faces" to draw different textual elements, for example font-lock-comment-face to draw comments. Faces can have different attributes, like font family, foreground colour, background colour, having a box around it,...

So if I want to use a variable pitch font (like say... DejaVu Sans) to draw comments, I can set the font-lock-comment-face to use the "DejaVu Sans" family.

[go to top]