Quantcast
Channel: ScintillaNET Forum Rss Feed
Viewing all articles
Browse latest Browse all 296

New Post: Comments don't get highlighted - why?

$
0
0
Hi there,

although I already specified
scintilla1.Lexing.LineCommentPrefix = "//";
scintilla1.Lexing.StreamCommentPrefix = "/*";
scintilla1.Lexing.StreamCommentSufix = "*/";
With this custom XML:
<?xml version="1.0" encoding="utf-8"?>
<ScintillaNET>
  <!--This is what you set the Language property to-->
  <Language Name="myLanguage">

    <!--These are characters after which autocomplete will open-->
    <AutoComplete FillUpCharacters=".([" SingleLineAccept="True" IsCaseSensitive="False">
      <List>
          <!--Insert autocomplete keywords here-->
      </List>
    </AutoComplete>

     <!--Indentation width and indentation type-->
    <Indentation TabWidth="4" SmartIndentType="cpp" />

     <!--Comment characters and the lexer to use-->
    <Lexer LexerName="lua" LineCommentPrefix="//" StreamCommentPrefix="/* " StreamCommentSuffix=" */" >
      <Keywords List="0" Inherit="False">
      </Keywords>
    </Lexer>
    <Styles>
        <Style Name="WORD" ForeColor="Black" BackColor="White"/>
    </Styles>
  </Language>
</ScintillaNET>
It doesn't recognize these comment prefixes, it still uses "--" for comment highlighting... What am I doing wrong?

Regards,
2mq

Viewing all articles
Browse latest Browse all 296


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>