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

New Post: Text property and syntax hightlight

$
0
0
Jacob,

Thanks about your prompt answer.

Below, the code I wrote:
            ScintillaNET.Scintilla sne = new ScintillaNET.Scintilla();

            sne.ConfigurationManager.Language = "python";
            sne.Indentation.SmartIndentType = ScintillaNET.SmartIndent.Simple;
            sne.TabIndex = 4;
            sne.Whitespace.Mode = ScintillaNET.WhitespaceMode.VisibleAfterIndent;
            sne.Text = "import sys";  
            sne.Dock = DockStyle.Fill;

            pg.Controls.Add(sne);
            sne.Invalidate();
            tcScripts.SelectedTabPage = pg;
As you can see, I´m creating the Scintilla controle by code. I tryied the Invalidate(), and this is not updated as well. The "import sys" is for testing only.
As soon I type something in the control, it starts to work properly, that is, show the correct font and highlights sintax.

Mauro

Viewing all articles
Browse latest Browse all 296

Trending Articles



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