Sample Header Ad - 728x90

Nano c.nanorc format

2 votes
0 answers
700 views
I like portability between systems and I was trying to make my nano editor look as much as possible like Sublime Text (on Linux Mint). I want to color function names too. So far I managed to make it as shown in the picture: Sublime Text and nano side-to-side The code I used is a bit of a cheat. I color void itself and the space after until the next space:
color brightyellow  start="void " end="[ ]"
color cyan "void"
The reason I color it twice is that it makes void bright yellow too, plus it works only if I write my code like:
void fu (void);
with a space between fu and (. However, if I write the code as:
void fu(void);
it breaks. My question is how do I write start="void " end="(" in c.nanorc, in such a way to start from void to ( but ignore the words themselves?
Asked by Spiritus (21 rep)
May 13, 2021, 11:34 AM
Last activity: May 13, 2021, 12:45 PM