Change default language highlighting in Notepad++

Notepad++ is a great tool not only to edit or write normal text but also text related to programming languages, that's the reason its so popular among the computer programmers. You must have see that you open a file say with .py extension the editor will render the content by highlighting syntax of Python, and if you work on a new tab it will be treated as a plan text file offering no syntax highlighting.

But what if you are a Python developer and want to always have this option available when dealing with files in Notepad++, you can do this by the following options,

  1. Open Notepad++
  2. Now go to Menu -> Settings -> Preferences..
  3. Select New document
  4. You will see a drop-down Default language
  5. Select the language you want as default to set and click close button.
  6. That's it.

Now say you select the language to he HTML all that you would type will be in color codes of HTML syntax.

Recent Posts:

Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.