문제

I'm using the awesome Sublime Text 2 to write in TI-NSPIRE/ Ti-BASIC programs for Nspire Calculator, but it has no syntax highlighting for TI-NSPIRE/ Ti-BASIC. It would be handy to add TI-NSPIRE/ Ti-BASIC's commands. Does anybody know how I would create a syntax highlighting set for Sublime?

도움이 되었습니까?

해결책

You'll have to create a new syntax definition for your language. It's basically a set of regular expressions that define scopes, which can then be highlighted using an appropriately-customized theme. If you'd like to look before you leap, browse the Packages directory (reachable through Preferences -> Browse Packages) and look for LanguageName.tmLanguage files in any LanguageName directory (they may be in a Syntaxes subdirectory). These are text files are in PLIST or XML format and are viewable within ST2 itself. Good luck!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top