- Codemirror tenia varias opciones que eran incompatibles con la version de procesmaker y ie. - Se pudo el codmirror antiguo para las secciones del Designer en el xml y javascript para evitar esos errores. - se pudo el mismo codigo para las 3 navegadores chrome, firefox, ie.
62 lines
1.7 KiB
HTML
62 lines
1.7 KiB
HTML
<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="../../style/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: "style/csharpcolors.css",
|
|
path: "../../js/",
|
|
height: "500px"
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|