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
{
    /// &lt;summary>
    /// Represents a person employed at the company
    /// &lt;/summary>
    public class Employee : Person
    {
        #region Properties
        
        /// &lt;summary>
        /// Gets or sets the first name.
        /// &lt;/summary>
        /// &lt;value>The first name.&lt;/value>
        public string FirstName { get; set; }

        #endregion

        /// &lt;summary>
        /// Calculates the salary.
        /// &lt;/summary>
        /// &lt;param name="grade">The grade.&lt;/param>
        /// &lt;returns>&lt;/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

Version Path
erp_app-3.1.16 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.1.15 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.1.14 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.1.13 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.1.12 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.1.11 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.1.10 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.1.9 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.1.8 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.1.7 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.1.6 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.1.5 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.1.4 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.1.3 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.1.2 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.0.16 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.0.15 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.1.1 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.1.0 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html
erp_app-3.0.14 public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html