Syntax highlighting for .sage in sublime - sublimetext2

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.

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.

Related

can't work with vscode python django html autocomplete features not working

first I created a project to work with django, but when I add index.html to it it doesn't autocomplete! When I type, nothing comes up, I also get an error like "This extension is deprecated because it is no longer maintained".
"!" in the html files of my codes.
When I put the tick I wanted autocomplete but it didn't happen and I searched a lot and couldn't find any result. I would be glad if you help.
Here is the following method for doing what you what to do.
open your vscode.
Go to setting and search emmet language in the search bar find it include the language and add a specific language.
After doing this save it and your vscode is ready to go.

Why does Intellisense in vscode not recognize .html5 files?

Unfortunately Intellisense does not recognize .html5 files in vscode (visual studio code). So it doesn't show me any code completion. Does anyone know where to set this up correctly? Thxs...
I just saw that in this case a php file was saved under .html5, otherwise I think vscode would recognize the correct language. So I changed the language in the right bottom corner only for this file.
https://code.visualstudio.com/docs/languages/overview#_changing-the-language-for-the-selected-file

simple code editor with snippets panel?

I use Webstorm as my IDE and Brackets for some quicker stuff.
Is there a light weight editor similar to brackets that has a snippets panel like Dreamweaver? or maybe one that has a plug in or extension that adds a snippets panel?
I'm familiar with live templates in Webstorm but I don't believe there is a way to have a list of them in a panel that is always visible. I much prefer to have a big panel of commonly used blocks of code and html tags that are always visible that I can just click on.
Thanks for the help.
Windows Only:
Notepad++ has a a snippet plug in which does the same thing. After installing Notepad++ you simply click the Plugin menu -> Plugin Manager. The tick snippets and press install. The rest is done for you.
Alternatives:
Sublime Text has a snippet tool but it's not the same as as Dreamweavers snippet panel.

Sublime Text Multiple Files Hint

I'm using Sublime Text as My Editor, Sublime Text Doesn't allow auto-complete or code hints between multiple files, instead you get hints for functions or variables that are located in the same file your working on. How can i get code hints of a function that is located in another file?
Thanks.
This package is what you are looking for I guess: https://sublime.wbond.net/packages/All%20Autocomplete

How do I program different languages in Sublime Text?

I recently downloaded Sublime Text, but I could only find 9 languages, all of which I don't program. I would like to code HTML, CSS, and JavaScript, and I would like to know how to add these build systems onto my computer.
SublimeText is just a text editor with some 'extra bits' plugged in.
HTML, CSS and JavaScript aren't compiled languages, so you don't need a compiler, just save the file with the correct extention (.html, .cs or .js).
For syntax highlighting, click the box on the far right of the status bar, it'll list some languages that SublimeText knows about, including those three and will helpfully provide syntax colouring and formatting to help you along.
Sublime text is only a text editor. As for HTML, CSS, and JS, those are all present in sublime, and don't require a build system, just a web browser.
If you want to use those languages, use shift-command(control?)-p to open the command pallet and type sshtml, sscss, ssjavascript, etc. to set the syntax highlighting.
To run it, simply open the HTML file in your browser, and reload the page if you've made changes.