This project is read-only.

xml lexer without support to script languages

Topics: Developer Forum
Jun 10, 2009 at 6:04 PM

I would like to know if it is possible to use the xml lexer without giving support to script languages. I am having a problem with a xml like the one shown bellow. The editor doesn't highlight the XML tags between the <Script> tag.

<?xml version="1.0" encoding="utf-8"?>
        <Tag1 TagAttribute="att1"/>
        <Tag2 TagAttribute="att2"/>



Jun 20, 2009 at 4:16 AM

I looked into this and wasn't able to make it work. Try posting to the Scintilla (proper) mailing list

Oct 14, 2009 at 9:48 AM

Oops I was wrong. There is a lexer flag to disable this.

scintilla.Lexing.SetProperty("lexer.xml.allow.scripts", "0");
This lexer properties aren't designable so this has to be set in code.