Notepad++ is a very powerful editor and it also have this flexibile to define new “languages”, or more precisely highlighting schemes.
Let’s go through an example of adding a new language for an iCal or .ics file. By the way, ICS is a global format for calendar files widely being utilized by various calendar and email programs including Google Calendar, Apple iCal, and Microsoft Outlook.
NB: If you do not have an iCal file, go to http://www.calendarlabs.com/ical-calendar-holidays.php to download one and view it using Notepad++.
Steps to defining a new language:
- Go to http://docs.notepad-plus-plus.org/index.php/User_Defined_Language_Files where you can download many language files which are ready for use.
- Go to ‘iCalendar’ and save this xml (userDefineLang_iCalendar.xml) file to your computer.
- Launch Notepad++ and Go to ‘Language’ -> ‘Define your language…’.
- Click on ‘Import…’ button and select the ‘userDefineLang_iCalendar.xml’ that you have saved to computer earlier.
- A “Import successful” popup will appear.
- Click OK and restart Notepad++.
- Go to ‘Language’ menu and a new language called ‘icalendar’ should appear.
- The .ics file should now have a highlighting scheme as shown below 🙂