colorer / Colorer-schemes

Syntax and color schemes for colorer library
31 stars 25 forks source link

<project> tag parsing in xml files #162

Closed kong-en-ge closed 1 month ago

kong-en-ge commented 3 months ago

If some xml has "project" tag the whole file displays as misformatted

image

ctapmex commented 1 month ago

There are two root elements in the example here , VisualElements and project, which does not correspond to the xml format. therefore, the text is highlighted as an error

kong-en-ge commented 1 month ago
  1. Only Application is the root. It contains VisualElement and project
  2. If you change project to anything else the error disappears.
ctapmex commented 1 month ago

Yes, that's right. I looked closer. give an example of a text file and its name

kong-en-ge commented 1 month ago

The simpliest content can be just copied from here:

<root>
  <project/>
</root>

Note that error highlighting appears after opening the file, not after you type "project" part in current editing session.

ctapmex commented 1 month ago

what is the file name extension? this affects the choice of type recognition scheme

kong-en-ge commented 1 month ago

.xml of course

ctapmex commented 1 month ago

this file is defined as "ant's build.xml". you can check this by clicking F11 - FarColorer - List types . The type highlighted in the list is how the plugin defined it. You must either select the desired other type in the list, or change the settings in proto.hrc. There to reduce the weight in line <first line weight='5'>/&lt;project\b/</firstline>

kong-en-ge commented 1 month ago

A bit unexpected, but at least clarified :)