zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.92k stars 1.17k forks source link

create my own type of file, and highlight different lines #3456

Closed vincentaxhe closed 3 weeks ago

vincentaxhe commented 3 weeks ago

I take notes with sigils in it.

? what I miss
! against reason
+ wide thinking
= way to do 

How can I create my type of file such as 'xxx.rem', rem short for remember, and link syntax file to it. To colorize lines with differenct sigil.do I need to recomplie micro? I take notes as soon as something come to my mind, I normally do it with dte, but it seems micro highlight is more configuable.

Andriamanitra commented 3 weeks ago

Creating your own syntax files is explained in help colors. The syntax file should be placed in eg. ~/.config/micro/syntax/rem.yaml. You may also look at the built-in syntaxes for inspiration.

vincentaxhe commented 3 weeks ago

thanks for instant response, I have some questions, and there is runtime/help instead of wiki page.