Validate Mikrotik config scripts

Hi Everyone!

We are using several Mikrotik devices in our network and more and more installed every day. Usually I have to write the config scripts without the access to an actual Mikrotik hardware. I thought about it would be great if I could somehow validate these hand written configs without real devices, automated. Firstly a general syntax check would be enough, because I found out that there are several things which is not handled correctly in the import function (like trailing empty lines, etc…).
Is this possible somehow? Does anyone managed to do something similar? I’m open for every idea, like installing a virtual CHR and testing there, etc…

Thanks!

Install hyperv and a chr. Suits your case.

I thought about this, but I hoped that there are easier methods. Anyway I will try this, thanks!

Visual studio code free one has plug-in to validate configuration files

Download visual studio code and one extension and then you can select at bottom router os script and it will show you

I should add multiple plug-in