Closed kong-en-ge closed 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
Yes, that's right. I looked closer. give an example of a text file and its name
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.
what is the file name extension? this affects the choice of type recognition scheme
.xml of course
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'>/<project\b/</firstline>
A bit unexpected, but at least clarified :)
If some xml has "project" tag the whole file displays as misformatted