Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Syntax highlighting for .sage in sublime

I started to write some code for sagemath having extension .sage. I write those on sublime text editor. However there is no syntax highlighting for .sage documents. Sage is mostly based on Python. So is there any way that I can tell sublime to use Python syntax whenever I use .sage file. ?

Thanks is advance.

like image 638
Kumarm Avatar asked Nov 04 '25 16:11

Kumarm


1 Answers

From the main window, click the View menu, choose Syntax, then at the top "Open all files with current extension as…" you can choose which syntax highlighting to use.

like image 148
idleberg Avatar answered Nov 07 '25 14:11

idleberg