Sublime Forum

Mcnp code syntaxing

#1

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



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.

0 Likes

#2

I converted the VS Code syntax and created a basic MCNP package for Sublime Text.

Feel free to add comments.

If you are interested in further maintaining and improving the syntax, let me know.

1 Like

#3

Thank you! I added the extensions .i, and .inp and it works as expected. I will work on the color scheme and theme a bit to make it more personal.

0 Likes