The Zen of Telling Notepad++ That .Config Files are XML
There's a zen beauty in improving the configuration of your tools. Breathe in. Configure. Breathe out. Reconfigure.
Problem: When I open a
web.config file with Notepad++ it doesn't realize that it's an XML file. Thus, it doesn't syntax highlight the file accordingly.
A moment of googling led me to an answer at superuser.
- Go to
Language, scroll down and highlight "XML"
- Beneath the
User ext.textbox and add "config" to the list.
Save & Close
- You will need to close and reopen the file, for the syntax highlighting to take effect.
This is one of those minor frustrations that I put up with, year in year out, and don't even realize I'm tolerating it. Why? because every time I edit a web.config file I'm absorbed in the momentary struggle, struggling under the cognitive load of a deep mental stack of problems. I don't have the time (or the mental resources) to stop and fix this problem before getting the job itself done.
Slow down. Get the tooling right. Sharpen the axe.
Spend five minutes to save five seconds*.
It will pay off in time.
(There's also something nicely recursive about configuring the way config is displayed)
* The idea of 'Spend five minutes to save five seconds' is basically a variation on:
Next → ← Previous
spend two hours to save five minutes
I'm currently writing a book about how to build your first product. If you want to build your first product, please sign up to be notified when the book is available.