Community discussions

MikroTik App
 
diasdm
newbie
Topic Author
Posts: 30
Joined: Fri Sep 22, 2023 4:48 pm

Mikrotik script syntax highlight

Thu Mar 14, 2024 2:48 am

I often write scripts for many tasks and syntax highlighting is always useful.
Notepadd++ and Nano are good tools for small stuff.

Outside MT CLI, is there a language highlight we can set that is mostly good for highlighting MT script syntax?
 
User avatar
karlisi
Member
Member
Posts: 443
Joined: Mon May 31, 2004 8:09 am
Location: Latvia

Re: Mikrotik script syntax highlight  [SOLVED]

Thu Mar 14, 2024 8:26 am

 
holvoetn
Forum Guru
Forum Guru
Posts: 5500
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Mikrotik script syntax highlight

Thu Mar 14, 2024 9:44 am

Interesting ... is there a way to extract the command list from ROS ?
 
mke
newbie
Posts: 25
Joined: Wed Sep 27, 2017 3:37 am

Re: Mikrotik script syntax highlight

Thu Mar 14, 2024 10:03 am

Sublime Text and vscode both have mikrotik syntax packages. Not what you asked for but they are both good editors in different ways.
 
tangent
Forum Guru
Forum Guru
Posts: 1406
Joined: Thu Jul 01, 2021 3:15 pm
Contact:

Re: Mikrotik script syntax highlight

Thu Mar 14, 2024 11:04 am

 
jaclaz
Long time Member
Long time Member
Posts: 667
Joined: Tue Oct 03, 2023 4:21 pm

Re: Mikrotik script syntax highlight

Thu Mar 14, 2024 3:45 pm

Interesting ... is there a way to extract the command list from ROS ?
Rextended posted a script to recursively list *everything*, here:
viewtopic.php?p=1047252
viewtopic.php?p=1047252#p1047229
and later one that saves to file.
Is this what you were asking for?
 
holvoetn
Forum Guru
Forum Guru
Posts: 5500
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Mikrotik script syntax highlight

Thu Mar 14, 2024 3:53 pm

Sweet !!
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19404
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Mikrotik script syntax highlight

Thu Mar 14, 2024 4:19 pm

Amazing work................. both AMMO and rextended seem more comfortable with syntax than most are with adding a vlan to a pppoe interface...........
 
User avatar
miku
just joined
Posts: 15
Joined: Fri Feb 23, 2024 3:57 pm
Location: Poland

Re: Mikrotik script syntax highlight

Thu Mar 14, 2024 6:15 pm

@holvoetn, @diasdm

You may be interested in my "invention" for integrating Notepad++ with RoS via rest Api. viewtopic.php?p=1060260#p1060260
There's also a bit about syntax highlighting. Currently, Notepad++ has a package for RoS in the UDL (User Defined Languages) repository.
 
optio
Long time Member
Long time Member
Posts: 675
Joined: Mon Dec 26, 2022 2:57 pm

Re: Mikrotik script syntax highlight

Thu Mar 14, 2024 9:59 pm

Here is something similar for VS Code viewtopic.php?t=200228
 
diasdm
newbie
Topic Author
Posts: 30
Joined: Fri Sep 22, 2023 4:48 pm

Re: Mikrotik script syntax highlight

Fri Mar 15, 2024 1:00 am

I found @truefriendcz's theme to be the best for my eyes.
I appreciate all the feedback.

Who is online

Users browsing this forum: dmitris and 7 guests