Apply adhoc class to open file
Posted: Mon Feb 15, 2016 11:06 pm
Hi,
Is there a way that I am able to apply a class to an open file that is currently in a different (or no) class?
EG.
* I have set up a class for "Shell Scripts" (*.ksh, *.sh)
* I have set up a class for "SQL Scripts" (*.sql)
* I have a few files in my dev repo that do not have file extensions (eg. MySQLScript, MyShellScript)
* When I open MyShellScript file, I would like the ability to select and apply the "Shell Scripts" class to this particular open file in an adhoc manner so I can have this open file make use of things like Syntax Highlight, desired tabs, etc.
* In the same session, I would also like to apply the "SQL Scripts" to another file MySQLScript.
Is there a way to do this?
Thanks
Is there a way that I am able to apply a class to an open file that is currently in a different (or no) class?
EG.
* I have set up a class for "Shell Scripts" (*.ksh, *.sh)
* I have set up a class for "SQL Scripts" (*.sql)
* I have a few files in my dev repo that do not have file extensions (eg. MySQLScript, MyShellScript)
* When I open MyShellScript file, I would like the ability to select and apply the "Shell Scripts" class to this particular open file in an adhoc manner so I can have this open file make use of things like Syntax Highlight, desired tabs, etc.
* In the same session, I would also like to apply the "SQL Scripts" to another file MySQLScript.
Is there a way to do this?
Thanks