Sublime Forum

Default syntax on 3.1.1

#1

I’m new(ish) to Sublime Text and it’s amazing. I am in networking and the figured out how to install the Junos syntax. but can’t find any posts that address setting up syntax as a default. 95% of my use of sublime text is writing Juniper configs, so it would be great if i could just say “open as junos” I did search the forums, but everything I found was for Sublime Text 2 and as I’m new I don’t know how different they are, nor do i know what to modify to make them work.

thanks

0 Likes

#2

If your issue is that when you open an existing file and it doesn’t detect that it’s a Junos file, you can tell Sublime to use that syntax for that kind of file by selecting View > Syntax > Open all with current extension as... from the menu and selecting the appropriate syntax there. This menu is also available from the status bar on the far right where the type of current file is displayed.

If you mean that you’d like all newly created files to have this syntax applied, there’s no built in way to change the syntax from something other than Plain Text, but the Default File Type package may help you in that regard.

0 Likes