Quantcast
Channel: ScintillaNET Wiki & Documentation Rss Feed
Viewing all articles
Browse latest Browse all 30

Updated Wiki: FAQ

$
0
0

Frequently Asked Questions (FAQ)

These questions are frequently asked in our discussion forum. Common exceptions and other issues are covered in Troubleshooting.

Table of Contents

Can ScintillaNET run on 64-bit platforms?

Yes, as of version 2.3. Make sure you distribute both SciLexer.dll and SciLexer64.dll with your application and ScintillaNET will automatically detect the platform and use the appropriate DLL.

How do I create my own language and/or custom syntax highlighting?

ScintillaNET has numerous built-in lexers (the components responsible for syntax highlighting) and so chances are that any modern language already has syntax highlighting support and you'll just need to configure it to your liking. Doing syntax highlighting for your own custom language, however, requires a very good understanding of compiler theory and parsing. If you're feeling adventurous you can try the following:
Scintilla.Indentation.SmartIndentType = SmartIndent.None;
Scintilla.ConfigurationManager.Language = String.Empty;
Scintilla.Lexing.LexerName = "container";
Scintilla.Lexing.Lexer = Lexer.Container;
Scintilla.StyleNeeded += Scintilla_StyleNeeded;
This will call the Scintilla_StyleNeeded event handler anytime Scintilla needs to style text—allowing you to provide your own custom styling logic. At that point you're on your own. A brief explanation of styling can be found in the Basic Styling Overview page of the Documentation. There is also a rudimentary working example in the IniLexer class of the SCide sample application.

Be mindful of the fact that if you run into a roadblock you're not likely to get people jumping at the chance to help you with "your" custom language in the forums.

How do I request a feature or report a bug?

From the Issue Tracker link at the top of our CodePlex page select Create Issue. Given our small team size requests can sometimes take a while to get to but we do eventually see and attempt to fulfill them all.

Can you show me some sample code to accomplish XYZ?

No. We understand that our Documentation is on the light side, however, asking us to write code for you will go unanswered. We simply don't have the time. On the other hand, you will almost always get a response when you post your troublesome code and ask us to steer you in the right direction.


Viewing all articles
Browse latest Browse all 30

Trending Articles



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