question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add option to set syntax highlighting language for a file

See original GitHub issue

Syntax 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:closed
  • Created 7 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
svHatchcommented, Apr 21, 2020

+1 same with me

2reactions
michaelblowrycommented, Jun 6, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found