Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Perhaps consider <a href="http://codemirror.net/" rel="nofollow">CodeMirror</a> items for the web. Obviously this won't work for WPF as you'd asked, but it'll work for any web framework - Webforms, ASP.NET MVC, plain HTML, PHP and others.</p> <blockquote> <p>CodeMirror is a JavaScript library that can be used to create a relatively pleasant editor interface for code-like content ― computer programs, HTML markup, and similar. If a parser has been written for the language you are editing (see below for a list of supported languages), the code will be coloured, and the editor will help you with indentation.</p> </blockquote> <p>Parsers for :</p> <ul> <li>JavaScript</li> <li>XML/HTML</li> <li>CSS</li> <li>HTML mixed-mode</li> <li>SPARQL</li> <li>HTML+PHP mixed-mode</li> <li>Python </li> <li>Lua </li> <li>Ruby</li> <li>SQL </li> <li>PLSQL</li> <li>diff </li> <li>Groovy </li> <li>C#</li> <li>Scheme</li> <li>Java </li> <li>XQuery </li> <li>OmetaJS </li> <li>Freemarker</li> </ul> <p>Implementation:</p> <pre><code>&lt;textarea rows="30" cols="120" id="someCode" &gt; //some comments var foo = "bar"; &lt;/textarea&gt; </code></pre> <p>You include 2 .js references, and then this bit of JavaScript replaces your textarea elements with new syntax highlighted elements.</p> <pre><code>&lt;script type="text/javascript"&gt; var textarea = document.getElementById('someCode'); var editor = new MirrorFrame(CodeMirror.replace(textarea), { height: "350px", content: textarea.value, parserfile: ["tokenizejavascript.js", "parsejavascript.js"], stylesheet: "css/jscolors.css", path: "js/", autoMatchParens: true }); &lt;/script&gt; </code></pre> <p><a href="http://codemirror.net/manual.html" rel="nofollow">The CodeMirror manual helps</a>.</p> <p>Also consider the <a href="http://en.wikipedia.org/wiki/Comparison_of_JavaScript-based_source_code_editors" rel="nofollow">WikiPedia entry for Comparison of JavaScript-based source code editors</a> </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload