开发者

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

开发者 https://www.devze.com 2022-12-20 03:28 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_Python百科 Closed 12 years ago.

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...


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>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号