Page 1 of 1
Best Script Editor for RouterOS?
Posted: Tue Oct 17, 2023 7:33 am
by CramosKaryar
Can you suggest a robust script editor that offers comprehensive highlighting and auto-completion functionalities for RouterOS? Given the lack of runtime exception alerts in RouterOS and the limited highlighting capabilities in VSCode, are there any editors known to provide advanced support for RouterOS scripting?
Re: Best Script Editor for RouterOS?
Posted: Tue Oct 17, 2023 9:04 am
by holvoetn
First one coming to mind is Notepad++ but you may have to create your own template for the scripting syntax.
Not sure it's up to date with latest versions of ROS.
Re: Best Script Editor for RouterOS?
Posted: Tue Oct 17, 2023 10:28 am
by rextended
HomeSite® 5.5+ Copyright © 1998-2003 Macromedia, Inc.
However, a good editor can't make up for whether you know what you're doing or not.
Re: Best Script Editor for RouterOS?
Posted: Tue Oct 17, 2023 12:27 pm
by diamuxin
I use Visual Studio Code with the "RouterOS Syntax Highlighting" extension installed.

Re: Best Script Editor for RouterOS?
Posted: Wed Oct 18, 2023 5:53 am
by Amm0
... auto-completion functionalities for RouterOS?
VSCode (and rest) all use regex. While it doesn't flag errors, the coloring does look different if "wrong" (like unterminated blocks, unquoted things, variables in strings, etc.), but that about what you get.
@optio in another thread wrote an approach that uses VSCode's task api and SSH to flag errors, but not really "auto-completion". AFAIK no one has built an LSP for RouterOS script which is what get you auto-complete and real syntax checking. See this thread:
viewtopic.php?t=200228&hilit=LSP