Junos Automation (Scripting)
Highlighted
Junos Automation (Scripting)

Notepad++ syntax for SLAX

[ Edited ]
‎11-23-2012 08:33 AM

I made a language definition for SLAX in Notepad++ (amongst others) if anyone wants to try it. I know its a pretty popular editor on Windows. Here's the repo:

 

https://github.com/scottdware/npp-custom-lang

 

Its still a work-in-progress, as I'll be adding more function definitions to it, etc. Just download the "slax.xml" file. There are others in the repo as well, so feel free to try them all 🙂

Scott Ware
Security Engineer
Juniper Ambassador
Twitter: @scottdware
Skype: scottdware
scottdware@gmail.com

"Do. Or do not. There is no try." - Yoda
15 REPLIES 15
Highlighted
Junos Automation (Scripting)

Re: Notepad++ syntax for SLAX

‎12-03-2012 12:55 PM

Outstanding! I've been looking for this for a long time now.

 

If I may make a suggestion, add syntax for...

 

<argument> {
        <name> "source-address";
        <description> "Source IP address of the initial session creation packet";
}

 

I really like this! Thank you for taking the time to make it.

Highlighted
Junos Automation (Scripting)

Re: Notepad++ syntax for SLAX

‎12-13-2012 05:32 AM

Thanks, I'm glad that you like it!

 

I will get started on adding syntax for that!

 

Thanks for the tip!

Scott Ware
Security Engineer
Juniper Ambassador
Twitter: @scottdware
Skype: scottdware
scottdware@gmail.com

"Do. Or do not. There is no try." - Yoda
Highlighted
Junos Automation (Scripting)

Re: Notepad++ syntax for SLAX

[ Edited ]
‎12-13-2012 05:44 AM

Just updated it. Check it out and let me know what you think.

https://github.com/scottdware/npp-slax

Scott Ware
Security Engineer
Juniper Ambassador
Twitter: @scottdware
Skype: scottdware
scottdware@gmail.com

"Do. Or do not. There is no try." - Yoda
Highlighted
Junos Automation (Scripting)

Re: Notepad++ syntax for SLAX

‎03-01-2013 09:22 AM

I'm sure you are aware, but if not, there is a Notepad++ script respository here:

http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=User_Defined_Language_Files

 

You should submit yours!

Highlighted
Junos Automation (Scripting)

Re: Notepad++ syntax for SLAX

‎03-07-2013 06:08 AM
Thanks, jspanitz!

I will go ahead and do that!
Scott Ware
Security Engineer
Juniper Ambassador
Twitter: @scottdware
Skype: scottdware
scottdware@gmail.com

"Do. Or do not. There is no try." - Yoda
Highlighted
Junos Automation (Scripting)

Re: Notepad++ syntax for SLAX

‎03-16-2013 09:51 AM

Hi Scott

 

I am trying importing the xml, but I receive a error, Failed to Import, on NPP 6.3

 

Thanks!

George Silverio da Silva
JNCIS-ENT
IT security specialist
Highlighted
Junos Automation (Scripting)

Re: Notepad++ syntax for SLAX

‎03-21-2013 05:00 PM
Sorry for the delayed response (and for your troubles with it). I'll take a look and try to see if I can't re-create the issue that you're having.
Scott Ware
Security Engineer
Juniper Ambassador
Twitter: @scottdware
Skype: scottdware
scottdware@gmail.com

"Do. Or do not. There is no try." - Yoda
Highlighted
Junos Automation (Scripting)

Re: Notepad++ syntax for SLAX

‎03-21-2013 06:09 PM
George,

I was able to uninstall, then re-install Notepad++, and then import the slax.xml file without any issues. I'm using version 6.3.1
Scott Ware
Security Engineer
Juniper Ambassador
Twitter: @scottdware
Skype: scottdware
scottdware@gmail.com

"Do. Or do not. There is no try." - Yoda
Highlighted
Junos Automation (Scripting)

Re: Notepad++ syntax for SLAX

‎05-16-2014 09:28 AM

Sorry for the post-necromancy here, but I was wondering if this was uploaded somewhere else now (the original link is dead).  I'd love to have this.

Highlighted
Junos Automation (Scripting)

Re: Notepad++ syntax for SLAX

‎05-16-2014 05:53 PM

The new repository link is here:

 

https://github.com/scottdware/npp-custom-lang

Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
http://puluka.com/home
Highlighted
Junos Automation (Scripting)

Re: Notepad++ syntax for SLAX

‎07-15-2014 01:20 AM

Hello,

 

the import of the template for slax failed on Notepad++ 6.6.2

 

Error message is "Failed to import".

 

Any ideas ?

 

Thanks,

Rémy

Highlighted
Junos Automation (Scripting)

Re: Notepad++ syntax for SLAX

[ Edited ]
‎07-15-2014 04:44 AM

Remy,

I'll take a look and get back to you soon!

 

P.S. Steve - thanks for updating the link. I just changed it in the main post.

Scott Ware
Security Engineer
Juniper Ambassador
Twitter: @scottdware
Skype: scottdware
scottdware@gmail.com

"Do. Or do not. There is no try." - Yoda
Highlighted
Junos Automation (Scripting)

Re: Notepad++ syntax for SLAX

‎07-15-2014 05:05 AM
Remy,

I was able to import successfully without a problem. I'm running version 6.6.7 though, but I've been able to in previous versions as well.
Scott Ware
Security Engineer
Juniper Ambassador
Twitter: @scottdware
Skype: scottdware
scottdware@gmail.com

"Do. Or do not. There is no try." - Yoda
Highlighted
Junos Automation (Scripting)

Re: Notepad++ syntax for SLAX

‎04-14-2015 09:53 AM

Hi there,


Trying to import any of the XMLs from the most recent URL (https://github.com/scottdware/npp-syntax) into NPP 6.7.5 always fails. This looks to be the current version of NPP. Any ideas?

 

Thanks

Highlighted
Junos Automation (Scripting)

Re: Notepad++ syntax for SLAX

‎04-15-2015 05:25 AM

I was able to import slax successfully wih NPP 6.7.5. I downloaded as zip and unzip before importing slax.xml.

/Charlie

Feedback