junichi11 / netbeans-color-codes-preview

Show colors in an editor's sidebar
https://netbeans-vm.apache.org/pluginportal/catalogue/?id=24
Apache License 2.0
32 stars 8 forks source link

Is it working for XML based files? #21

Closed jmborer closed 5 years ago

jmborer commented 5 years ago

I am developping a LaF that is Synth based. The color plugin would become very handy in this context to see the colors defined.

The definition of the colors are similar not to say identical to the CSS syntax. Example

So I tried to add the xml mime-type:

^text/(x-)?(css|less|sass|scss|java|XML)$

It doesn't work. By the way I have no idea to determine the exact mime-type of a file in the editor... Any idea?

I'll attach the xml file so that you can have a look.

carbonite.zip

jmborer commented 5 years ago

After checking the source code, the answer is: not yet. It needs improvement.

junichi11 commented 5 years ago

Please add |.*xml. i.e. ^text/(x-)?(css|less|sass|scss|java|.*xml)$ .

jmborer commented 5 years ago

It works. Well done!