Add option to set syntax highlighting language for a file
See original GitHub issueSyntax highlighting is not switched on if the extension is py2 instead of py. Is there an option I can configure to switch the sytax highlighting on? Thanks!
Why?
I am translating some python2 code into python3 and found it useful to have the python2 version of spyder alongside the python3 version (latest dmgs for MacOS). I have also found it useful to change the python2 code extension to .py2. And I recolored the spyder icon and have the standard red icon for spyder3 and blue for spyder2!
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (8 by maintainers)
Top Results From Across the Web
Set language for syntax highlighting in Visual Studio Code
Press Ctrl + K M and then type in (or click) the language you want.
Read more >How to syntax-highlight part of a file in a foreign language?
Suppose we're editing a Bash script and some string variables are actually HTML code. How to force vim to use HTML syntax highlighting...
Read more >Syntax Highlight Guide | Visual Studio Code Extension API
Syntax Highlight Guide. Syntax highlighting determines the color and style of source code displayed in the Visual Studio Code editor.
Read more >Add syntax highlighting languages - UltraEdit Wiki
To add a syntax highlighting language, simply check its checkbox in the main list of languages. It will appear with a checkmark in...
Read more >How to Enable Syntax Highlighting in Vi/Vim Editor - Tecmint
To enable Syntax Highlighting feature in VI editor, open the file called /etc/profile. ... Add the alias function to VI by pointing to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

+1 same with me
I am also curious if this is possible now or will be in the future. My use case is *.pyt files which are Python Toolbox files for ArcGIS.