As AIML syntax isn't available for Sublime Text (which is normal because AIML is basically XML), is there a way to automatically convert all .aiml files opened by Sublime Text 3 to XML syntax highlighting (some sort of script to do this)? Whenever I have to reopen Sublime Text syntax highlighting restarts and I need to set highlighting from plain text to XML on every file.
Asked
Active
Viewed 244 times
1 Answers
2
With an .aiml
file open in ST3, and the syntax highlighting set to XML:
- (Build 3118 onwards:) From the
Preferences
menu ->Syntax Specific
: - (Build 3114 and older:) From the
Preferences
menu ->Settings - More
->Syntax Specific - User
Paste in or type the following, so that the contents of the file look like:
{
"extensions": ["aiml"]
}
And save it, and all .aiml
files opened from now on should be highlighted as XML automatically.

Keith Hall
- 15,362
- 3
- 53
- 71
-
@Nikola apologies, the JSON key should be `extensions` and not `file_extensions`. I have now updated my answer. – Keith Hall Jul 07 '16 at 14:09
-
It works now, thanks! – Nikola Stojaković Jul 07 '16 at 14:10