Sha256: ae23ca6fceb0105fc64adea53064afa43bae2fe40208f5c018e39c407fdfb7c2
Contents?: true
Size: 1.69 KB
Versions: 32
Compression:
Stored size: 1.69 KB
Contents
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <script src="../../js/codemirror.js" type="text/javascript"></script> <title>CodeMirror: C# demonstration</title> <link rel="stylesheet" type="text/css" href="../../css/docs.css"/> </head> <body style="padding: 20px;"> <p>Demonstration of <a href="../../index.html">CodeMirror</a>'s C# highlighter.</p> <p>Written by <a href="http://skilltesting.com/">Boris Gaber and Christopher Buchino</a> (<a href="http://skilltesting.com/codemirror-parser-license/">license</a>).</p> <div style="border-top: 1px solid black; border-bottom: 1px solid black;"> <textarea id="code" cols="120" rows="50"> using System; namespace Example { /// <summary> /// Represents a person employed at the company /// </summary> public class Employee : Person { #region Properties /// <summary> /// Gets or sets the first name. /// </summary> /// <value>The first name.</value> public string FirstName { get; set; } #endregion /// <summary> /// Calculates the salary. /// </summary> /// <param name="grade">The grade.</param> /// <returns></returns> public decimal CalculateSalary(int grade) { if (grade > 10) return 1000; return 500; } } } </textarea> </div> <script type="text/javascript"> var editor = CodeMirror.fromTextArea('code', { parserfile: ["../contrib/csharp/js/tokenizecsharp.js", "../contrib/csharp/js/parsecsharp.js"], stylesheet: "css/csharpcolors.css", path: "../../js/", height: "500px" }); </script> </body> </html>
Version data entries
32 entries across 32 versions & 1 rubygems