Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a user-defined language in Notepad++ based on an existing language?

I frequently work with files that have an extension of .ebs. This is a language based on vbscript with a number of new keywords.

Currently I set notepad++ to just use the built-in vb highlighting for files with extension .vbs. Works ok, but the custom keywords do not get highlighted.

I would like to create a user-defined language for the .ebs files but base it off of the built-in vb language.

Is this possible? I searched but the built-in languages do not have an associated .xml file to copy and change.

like image 761
bluesixty Avatar asked Oct 24 '11 15:10

bluesixty


People also ask

How do you Define a language in Notepad++?

Using Languages > Define Your Language… will bring up a dialog box (which can be docked as a pane in the Notepad++ Window, or can be a floating dialog box).

How do I write another language in Notepad++?

Setting language in Notepad++Open the Settings menu i Notepad++ and select Preferences.... 2. Select Localization on the General tab and choose your prefered language in the pulldown menu displaying the languages.

What is user defined language?

UDL stands for User Defined Language, it is a feature of Notepad++ editor through which users can define their own syntax highlighting.


1 Answers

All highlights are situated in \langs.model.xml and \stylers.model.xml.

Copy the one xml you want to base on and edit it the way you like.

like image 138
iehrlich Avatar answered Sep 28 '22 07:09

iehrlich