Christian Schwendemann1709155117 Posted March 15, 2017 Share Posted March 15, 2017 Hi I created a User Defined Language File for Notepad++ to bring the ns.conf into a colored and easy to read format :) Feel free to share and post it in your blogs. I dont claim any copyright and everybody is free to use and modify it himself. I tried to cover mostly all of the commands and parameters from the product documentation and checked it with some config´s from big deployments. Hope it covers most of your ns.config´s too.Feel free to update and share if not :) All you need to do is following to install the language file (once): Open Notepad++ (From Menue Bar) -> Language -> Define your language.. -> Import -> Select the downloaded file Close Notepad++ and re-open it. Next time you open a netscaler config in notepad++: (From Menue Bar) -> Language -> Citrix Netscaler (on the very bottom) - has to be selected manually, no autodetection, stays selected in a tab until its closed - Looks like this: just that you dont get confused by the color concept: All the -Parameters are normally light brown Any -Parameter that refer to settings like Certificate bindings, IP Modes, SSL Settings, Priorities etc. are kept green Some for me important like -rule or -action as well as ns_true and ns_false are kept in red The rest should be self explaining :) *UPDATED* v.1.3.2 :D Thanks to:Johannes Norz for support PS: Download Counter starts with every file update at 0 again.Today we had all together roundabout 350 downloads :) Netscaler_v1.3.2.xml 6 Link to comment Share on other sites More sharing options...
Sam Jacobs Posted March 15, 2017 Share Posted March 15, 2017 Hey Christian, Great job! Thanks for sharing! Sam P.S. Even though I'm color-blind, I can see the different colors clearly - just don't ask me what they are! :) 1 Link to comment Share on other sites More sharing options...
Julien Vailles1709154689 Posted March 15, 2017 Share Posted March 15, 2017 Very useful, thanks for sharing Christian! :) 1 Link to comment Share on other sites More sharing options...
Matthew Francis1709152434 Posted March 15, 2017 Share Posted March 15, 2017 Thanks for sharing. 1 Link to comment Share on other sites More sharing options...
Vaqar Hasan Posted March 15, 2017 Share Posted March 15, 2017 Appreciate the sharing 1 Link to comment Share on other sites More sharing options...
Christian Schwendemann1709155117 Posted March 15, 2017 Author Share Posted March 15, 2017 Welcome :) Johannes Norz, who is also Citrix Trainer for Networking as I am, was so nice and updated the file with some more other commands he found in his ns.conf like partition, stream and feo which I missed until now. I used the chance to update at the same time the version above and add highlighting for "text" like "http.req.header.exists" main post is updated and here - just for "version history" the file too, if you start reading here :D Netscaler_v1.3.2.xml 2 Link to comment Share on other sites More sharing options...
Gareth Carson1709152462 Posted March 15, 2017 Share Posted March 15, 2017 Thanks for the community share! Link to comment Share on other sites More sharing options...
Johannes Norz Posted March 16, 2017 Share Posted March 16, 2017 Chris, it's realy worth while using it. I put it into my link collection I use to give to students and cotumers! Best Johannes Link to comment Share on other sites More sharing options...
Salim Hurjuk Posted March 16, 2017 Share Posted March 16, 2017 Chris- Its really worth and easy to install. Thanks. Great Link to comment Share on other sites More sharing options...
Bernd KLAUS Posted March 16, 2017 Share Posted March 16, 2017 Danke Christian! ;) Link to comment Share on other sites More sharing options...
Christian Tinello Posted March 16, 2017 Share Posted March 16, 2017 Awesome, thanks for sharing... Link to comment Share on other sites More sharing options...
William Fulmer Posted March 16, 2017 Share Posted March 16, 2017 Christian This is great! Thank you Link to comment Share on other sites More sharing options...
David Pisa1709155307 Posted March 21, 2017 Share Posted March 21, 2017 This is absolutely awesome!!! Link to comment Share on other sites More sharing options...
Reinier Sanchez1709155063 Posted March 22, 2017 Share Posted March 22, 2017 Cool, thx. Link to comment Share on other sites More sharing options...
Robert Kenyon Posted March 22, 2017 Share Posted March 22, 2017 This is very awesome. I love it. One problem I noticed though is that the escapes in appfw profile expression paths are throwing off the parser: Link to comment Share on other sites More sharing options...
Christian Schwendemann1709155117 Posted March 23, 2017 Author Share Posted March 23, 2017 thanks :) Huh that one was a hard nut to crack Notepad++ didnt accept it when ((EOL)) - which is their way to check different end of line types - is placed at the end of the expressions. Got it now *EDIT* oops just saw that it then doesnt accept the second " for any reason even as it looks right in the source code of the file very strange.. sorry seems the only solution would be that you temporary add a second " in your expression. What would happen with the expression if you forget about the second "?Think it wouldnt hurt the expression, would it? btw offtopic: would the appfw also catch " then, which is html for "? Link to comment Share on other sites More sharing options...
Jani Kohonen Posted March 23, 2017 Share Posted March 23, 2017 Well done Chris and Johannes! :) Link to comment Share on other sites More sharing options...
Martin Meier Posted March 28, 2017 Share Posted March 28, 2017 Really great, loving it :wub: Maybe you can add Support for SSL-Profiles? I added -sslProfile as keyword in group 4 and the default profile values ns_default_ssl_profile_frontend and ns_default_ssl_profile_backend to group 6. Link to comment Share on other sites More sharing options...
Christian Schwendemann1709155117 Posted March 29, 2017 Author Share Posted March 29, 2017 :) cool thanks for the hint. I am teaching a Citrix Netscaler Class (CNS-220) this week and will compare the results on Friday and add some more as well as your mentioned -sslprofile´s if you find more, anytime you can click Export and create a new Version and post it here as attachment, I´ll update the Main Thread then. So come back on Friday evening or subscribe to the thread to stay tuned :) Link to comment Share on other sites More sharing options...
Jay Chandrasekar Posted March 30, 2017 Share Posted March 30, 2017 very cool. thanks! Link to comment Share on other sites More sharing options...
Adam Sieting Posted April 25, 2017 Share Posted April 25, 2017 Love it, but doesn't seem to work with themes and I'm not looking at the default theme. So bummer. Link to comment Share on other sites More sharing options...
Christian Schwendemann1709155117 Posted April 26, 2017 Author Share Posted April 26, 2017 is your version of notepad++ up to date? recently saw a students machine with an very outdated notepad++ it could load the file but didnt color up the content corresponding. when he rebooted his notepad++ all fields were empty, when he checked the settings of the loaded file. after upgrade everything was fine. Link to comment Share on other sites More sharing options...
Jason Coen Posted May 19, 2017 Share Posted May 19, 2017 Thanks! Link to comment Share on other sites More sharing options...
Paul Blitz Posted May 22, 2017 Share Posted May 22, 2017 Christian: I'm probably telling you how to **** eggs, but did he actually select the Netscaler language after loading it? By the way, found a "bug" in the ver 1.3.2 netscaler language file: if I have "add service svc_red srv_red HTTP 80 ...." then the HTTP comes up in red, but if I have "add service svc_lamp1 srv_lamp1 MYSQL 3306..." then the "MYSQL" is NOT highlighted. Same in an "add lb vserver" command Looks like MSSQL and MYSQL (and maybe some others) need an entry in the "Keywords 8" list Link to comment Share on other sites More sharing options...
Julian Mooren1709156280 Posted July 21, 2017 Share Posted July 21, 2017 Great job :) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now