Home  >  Article  >  Development Tools  >  How to add notepad++ language

How to add notepad++ language

(*-*)浩
(*-*)浩Original
2019-08-10 10:23:094787browse

notepad has many language formats, such as xml, sql, java, etc., to facilitate a clearer understanding of the code structure. But for new languages ​​like scala, notepad has not yet processed it, so users need to set a custom language format.

How to add notepad++ language

The following uses scala as an example to illustrate (recommended learning: notepad )

Online Find a scala notepad template, post a demo here

<notepadplus><br>    <userlang name="Scala" ext="scala"><br>        <settings><br>            <global caseignored="no"></global><br>            <treatassymbol comment="no" commentline="yes"></treatassymbol><br>            <prefix words1="no" words2="no" words3="no" words4="no"></prefix><br>        </settings><br>        <keywordlists><br>            <keywords name="Delimiters">"'0"'0</keywords><br>             <keywords name="Folder+">{</keywords><br>             <keywords name="Folder-">}</keywords><br>             <keywords name="Operators">- ! " # % & @ | ~ + </keywords><br>             <keywords name="Comment">1/* 1/** 2*/ 2*/ 0//</keywords><br>             <keywords name="Words1">class def extends forSome import object package trait type val var with</keywords><br>             <keywords name="Words2">boolean byte char double float int long short false new null super this true</keywords><br>             <keywords name="Words3">case catch do else finally for if match requires return throw try while yield</keywords><br>             <keywords name="Words4">abstract final implicit lazy override private protected sealed</keywords><br>         </keywordlists><br>         <styles><br>             <wordsstyle name="DEFAULT" styleid="11" fgcolor="000000" bgcolor="FFFFFF" fontname="" fontstyle="0"></wordsstyle><br>             <wordsstyle name="FOLDEROPEN" styleid="12" fgcolor="004080" bgcolor="FFFFFF" fontname="" fontstyle="1"></wordsstyle><br>             <wordsstyle name="FOLDERCLOSE" styleid="13" fgcolor="004080" bgcolor="FFFFFF" fontname="" fontstyle="1"></wordsstyle><br>             <wordsstyle name="KEYWORD1" styleid="5" fgcolor="004080" bgcolor="FFFFFF" fontname="" fontstyle="1"></wordsstyle><br>             <wordsstyle name="KEYWORD2" styleid="6" fgcolor="004080" bgcolor="FFFFFF" fontname="" fontstyle="1"></wordsstyle><br>             <wordsstyle name="KEYWORD3" styleid="7" fgcolor="004080" bgcolor="FFFFFF" fontname="" fontstyle="1"></wordsstyle><br>             <wordsstyle name="KEYWORD4" styleid="8" fgcolor="004080" bgcolor="FFFFFF" fontname="" fontstyle="1"></wordsstyle><br>             <wordsstyle name="COMMENT" styleid="1" fgcolor="008000" bgcolor="FFFFFF" fontname="" fontstyle="2"></wordsstyle><br>             <wordsstyle name="COMMENT LINE" styleid="2" fgcolor="008000" bgcolor="FFFFFF" fontname="" fontstyle="2"></wordsstyle><br>             <wordsstyle name="NUMBER" styleid="4" fgcolor="800000" bgcolor="FFFFFF" fontname="" fontstyle="0"></wordsstyle><br>             <wordsstyle name="DELIMINER1" styleid="14" fgcolor="FF0000" bgcolor="FFFFFF" fontname="" fontstyle="0"></wordsstyle><br>             <wordsstyle name="DELIMINER2" styleid="15" fgcolor="800080" bgcolor="FFFFFF" fontname="" fontstyle="0"></wordsstyle><br>             <wordsstyle name="DELIMINER3" styleid="16" fgcolor="000000" bgcolor="FFFFFF" fontname="" fontstyle="0"></wordsstyle><br>         </styles><br>     </userlang><br></notepadplus><br>

Find the language in notepad-custom language format-import, select the template (xml format) and click Open (OK)

How to add notepad++ languageRestart notepad, click on the language to see the customized language format

How to add notepad++ language

The above is the detailed content of How to add notepad++ language. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn