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.

Advertisements
Try Out Code2care Dev Tools:

Advertisements



Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


Advertisements


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, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR - https://donate.unhcr.org/in/en-in/ukraine-emergency