How do I edit or add to Notepad++ HTML/CSS autocomplete?

6

1

Could anyone tell me how to go about editing the existing CSS and/or HTML autocomplete language in Notepad++? My Google-fu has let me down and I can't find an answer.

In essence, I want to add some CSS3 to the autocomplete and to edit some of the existing entries to suit my needs.

I'm using v.5.7 on Win7 btw.

JoeP

Posted 2010-07-23T15:39:05.083

Reputation: 71

Answers

11

I think you can just add the relevant new keywords to the langs.xml file within the Notepad++ directory (back it up first, the usual warnings, etc). But, I believe this will do syntax highlighting only.

So, if you then go in to the plugins\APIs subdirectory you can edit the relevant .xml to also provide auto completion.

DMA57361

Posted 2010-07-23T15:39:05.083

Reputation: 17 581

Many thanks, it worked perfectly. Please consider yourself draped in copious good karma. – JoeP – 2010-07-24T10:12:30.640

2which is apparently better than getting the best answer. =P – John – 2011-10-20T23:36:45.293

@JoeP would you please mark this as the answer if you found it helpful :) I did +1 – Anagio – 2013-09-22T06:26:54.223