|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Storm Documentation | Controls | TextEditor</title>
<link rel="stylesheet" type="text/css" href="../style/codesheet.css" />
</head>
<body>
<h1>TextEditor Control</h1>
<p>The TextEditor Control is designed to:</p>
<ul>
<li>Provide very efficient and extensible syntax highlighting;</li>
<li>Make your users able to use breakpoints, bookmarks, code folding, line number, smart indentation, etc. when they use your application;</li>
<li>Give you more time to do stuff that actually needs focusing, instead of recreating a text editor all over again.</li>
</ul>
<p>Library dependencies:</p>
<ul>
<li>None</li>
</ul>
<h2>How to use the TextEditor Control?</h2>
<p>Using the TextEditor Control is very, very simple - add a reference to the Storm.TextEditor library in your toolbox, and drag-drop a
TextEditor onto your application. Then you can set it up in the designer via its properties. However, to set its syntax highlighting mode,
you must use a line of code:</p>
<pre class="csharpcode">
textEditor.SetHighlighting(SyntaxLanguage.vJass);
</pre>
<p>The TextEditor has functions for opening, saving, cut, copy, paste, undo, redo, etc., so you can use those when you need to.</p>
<a href="../libs.htm">Back</a>
</body>
</html>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.