Thanks for sharing. Here is what I’ve been using too. I don’t remember where I got it. I’ve updated it here and there. To use, create a “userDefineLang.xml” file and place it in the %AppData%\Notepad++ directory. Copy the contents below into that file and save it.
Please edit your fist post and add the file to it, not just the link. Click Attachments below edit window to add you file.
Also you should be more clear in what to import or run for auto-install.
Form auto or manual folder?
What of the two files in folder?
v1.3\MikroTik Scripts Syntax Highlighter for Notepad++ v1.3\Auto - Preconfigured\Notepad++\Data\Settings-Black\Notepad++
You should also mention that if you use the back theme, you need to change style on your Notepad++ to black style or else it does not look good.
Files are provided free of charge in my time and are designed for advanced users. There is no GUI. If you want to change the description, please include some suggestion in a private message or here, and if it is good idea, then I"ll add it to the next version.
Is it possible to make an edition with the MikroTik CLI colors? You can SSH to the device and see what they use.
Also please use transparent backgrounds for the text, because it doesn’t look as good in other Notepad++ themes, like Obsidian.
Yes, I know how to do it and I"ve done it already. At the moment I"m waiting for Mikrotik"s support for the CLI color scheme. I have not found the definition of the color scheme on the internet or here at the forum. SSH (Putty) and other programs take the color scheme directly from the terminal. It is xterm-256color mode only. I would like to add it in the next version. I thought Mikrotik"s support would be answered sooner. I do not want to publish a new version for one change only.
Edit: i recieved reply from MT support.
Hello,
We do not have a documented scheme that I can send you. You should copy the ideas from the RouterOS terminal by hand, it’s the best option right now.
Best regards,
Normunds R.
MikroTik support
Ok i make next version now.
I do not have the original color scheme of the Mikrotik terminal and I no have idea how get it. Maybe from API. But i dont working in API.
The color values that I’ve already posted here, are the terminal ones (as MT support said).
I did some color picker shenanigans and found the best possible match. Took me a little bit of time overall, but it should be alright.
The true challenge is separating the terminal paths (i.e. /ip address) from actual value names (/ip address set address=…)
This I haven’t been able to pull off in Notepad++ syntax highlighter. Plus there is a metric ton of additional keywords that need to be included, for the sake of completion.
When I open file with .rsc extension then syntax highlighting is used. But after I close Notepad++ and open it again then all is shown as regular text. Choosing syntax from Language menu also doesn’t apply it. Only thing what helps is re-open document.
I was able to get this working by manually importing the language .xml file ( i didnt want to run any of the .bat files as they looked like they installed notepad++ from scratch).
in notepad++ (Version: 7.91 , 32bit) i simply went to language → define your language. Then import (and choose the " light" .xml file from this author/thread , which was located in:
C:\Users\XXXXX\Downloads\MikroTik Scripts Syntax Highlighter for Notepad++ v1.7\Auto - Preconfigured\Notepad++\Data\Settings-Light\Notepad++\userDefineLang.xml
Then (and this seemed to be important), in the same User Define Language window, i choose “Save As…” and gave it my own name. (in my case “rOS Newer”)
now it works great, im able to go to Language → “rOS Newer” and it will highlight beautifully.
(i also have a older notepad++ rOS syntax highlighter i use from ~ 2016 which i have named “rOS Older” - im able to switich between the two at will)
I’ve shortened it a little bit:
e.g.
Mikrotik Scripts Syntax Highlighter (Black Glow).xml
and inside the xml, too:
<UserLang name=“Mikrotik Scripts Syntax Highlighter (Black Glow) - (.rsc)”