Community discussions

MikroTik App
 
CramosKaryar
just joined
Topic Author
Posts: 2
Joined: Thu May 25, 2023 7:37 am

Best Script Editor for RouterOS?

Tue Oct 17, 2023 7:33 am

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?
 
holvoetn
Forum Guru
Forum Guru
Posts: 5500
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Best Script Editor for RouterOS?

Tue Oct 17, 2023 9:04 am

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.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12014
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Best Script Editor for RouterOS?

Tue Oct 17, 2023 10:28 am

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.
 
User avatar
diamuxin
Member
Member
Posts: 319
Joined: Thu Sep 09, 2021 5:46 pm
Location: Alhambra's City

Re: Best Script Editor for RouterOS?

Tue Oct 17, 2023 12:27 pm

I use Visual Studio Code with the "RouterOS Syntax Highlighting" extension installed.

Image
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3509
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Best Script Editor for RouterOS?

Wed Oct 18, 2023 5:53 am

... 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

Who is online

Users browsing this forum: No registered users and 3 guests