The VS Code has a very nice syntax highlighting for mcnp:
For ST, I am not able to find one. Could someone help me in giving a prescription to convert the syntax highlighting to work in ST as well.
Followed the threads
Those “vetur” syntax definitions look like old-style tmLanguages that use YAML instead of XML. I’m sure they could be converted.
Honestly, though, I’m skeptical about those vetur definitions. They look pretty brittle when it comes to whitespace and such. Sublime’s syntax highlighting engine is more powerful than VS Code’s, so any improvements in vetur could be integrated into vue-syntax-highlight.
I am trying to convert a .tmLanguage file to .sublime-syntax format, using Sublime text. This is to use the file in another program (https://github.com/sharkdp/bat ).
These are the instructions that I have to do this:
If the Sublime Text syntax is only available as a .tmLanguage file, open the file in Sublime Text and convert it to a .sublime-syntax file via Tools -> Developer -> New Syntax from XXX.tmLanguage… . Save the new file in the assets/syntaxes folder.
I have pasted the .…
Note that it’s the job of the syntax definition (e.g. SomeLanguage.tmLanguage or SomeLanguage.sublime-syntax) to break the contents of the file into different parts based on their purpose in the language, and to apply one or more scopes that provide meta information on what each character is supposed to represent.
It’s the job of the color scheme (e.g. Monokai.tmTheme) to apply distinct foreground color, background color and font effects to various scopes (e.g. entity.name.tag shall be red).
I…
and many others to
convert the mcnp.tmLanguage.yaml to mcnp.YAML-tmLanguage and copied to mcnp.sublime-syntax in …\AppData\Roaming\Sublime Text\Packages\User but don’t get it to work. What am I missing? All or any help is appreciated.
Thanks.