Where can I find a jQuery syntax highlighting plugin for Notepad++? [closed]

人盡茶涼 提交于 2020-01-04 02:43:13

问题


jQuery has a syntax all its own*, and when writing ridiculously lengthy expressions I often yearn for some sort of highlighting. Is there a way to achieve this in Notepad++?

*except for the bits that are shared with CSS and JavaScript...


回答1:


Notepad++ has a langs.xml file in its directory that you can edit to add a jQuery langueage type and the keywords you want highlighted.

You can start by copying and editing the Javascript element:

<Language name="javascript" ext="js" commentLine="//" commentStart="/*" commentEnd="*/">
    <Keywords name="instre1">abstract boolean break byte case catch char class const continue debugger default delete do double else enum export extends final finally float for function goto if implements import in instanceof int interface long native new package private protected public return short static super switch synchronized this throw throws transient try typeof var void volatile while with true false prototype</Keywords>
</Language>


来源:https://stackoverflow.com/questions/2274947/where-can-i-find-a-jquery-syntax-highlighting-plugin-for-notepad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!