notepad++语言怎么添加


本文摘自PHP中文网,作者(*-*)浩,侵删。

notepad++具有许多语言格式,如xml、sql、java等,方便更清楚地理解代码结构。但像scala这种新语言,notepad++还未处理,所以需要用户设置自定义的语言格式。

下面以scala为例进行说明(推荐学习:notepad++)

网上找一个scala的notepad++模板,这里贴一个demo

1

<NotepadPlus><br>    <UserLang name="Scala" ext="scala"><br>        <Settings><br>            <Global caseIgnored="no" /><br>            <TreatAsSymbol comment="no" commentLine="yes" /><br>            <Prefix words1="no" words2="no" words3="no" words4="no" /><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" /><br>             <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="004080" bgColor="FFFFFF" fontName="" fontStyle="1" /><br>             <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="004080" bgColor="FFFFFF" fontName="" fontStyle="1" /><br>             <WordsStyle name="KEYWORD1" styleID="5" fgColor="004080" bgColor="FFFFFF" fontName="" fontStyle="1" /><br>             <WordsStyle name="KEYWORD2" styleID="6" fgColor="004080" bgColor="FFFFFF" fontName="" fontStyle="1" /><br>             <WordsStyle name="KEYWORD3" styleID="7" fgColor="004080" bgColor="FFFFFF" fontName="" fontStyle="1" /><br>             <WordsStyle name="KEYWORD4" styleID="8" fgColor="004080" bgColor="FFFFFF" fontName="" fontStyle="1" /><br>             <WordsStyle name="COMMENT" styleID="1" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="2" /><br>             <WordsStyle name="COMMENT LINE" styleID="2" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="2" /><br>             <WordsStyle name="NUMBER" styleID="4" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="0" /><br>             <WordsStyle name="DELIMINER1" styleID="14" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="0" /><br>             <WordsStyle name="DELIMINER2" styleID="15" fgColor="800080" bgColor="FFFFFF" fontName="" fontStyle="0" /><br>             <WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" /><br>         </Styles><br>     </UserLang><br></NotepadPlus><br>

notepad++中找到语言-自定义语言格式-导入,选择模板(xml格式)点击打开(确定)

阅读剩余部分

相关阅读 >>

如何设置Notepad++默认新建java文件

如何把Notepad++字符集改成utf8

Notepad++编码如何改成ansi

Notepad++搜索栏找不到了解决方案

Notepad++编写的shell脚本在linux下无法执行怎么解决

Notepad++中怎么快速放大字体

Notepad++如何更改主题和默认编码格式

Notepad++怎么安装markdown插件

Notepad++怎么在每行前面加相同的字符

Notepad++中如何查找替换“换行符”

更多相关阅读请进入《Notepad++》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...

    正在狠努力加载,请稍候...