Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SublimeText 2 web.config xml formatting

Tags:

sublimetext2

I have moved 90% of my development IDE work to SublimeText. The more I use it, the more I love its simplicity.

I am not able to figure out how to set code formating / coloring for different file extensions. How can I let subllimeText know .config files are xml files?

like image 637
Frank Avatar asked Jun 18 '12 21:06

Frank


People also ask

How do I indent XML in Sublime Text?

Open any XML file, or create a new file and paste any XML into it. Ctrl-K, F to indent it.

How to format document in Sublime Text?

Just select all lines ( CTRL + A ) and then from the menu select Edit → Line → Reindent. This will work if your file is saved with an extension that contains HTML like . html or . php .

How do I beautify the code in Sublime Text?

Beautify on Save sublime-settings : Ctrl+Shift+P or Cmd+Shift+P in Linux/Windows/OS X.


1 Answers

You can set this with:

  1. Open your .config file
  2. View -> Syntax -> Open all with current extension as... -> XML
like image 118
bojolais Avatar answered Sep 28 '22 01:09

bojolais