summaryrefslogtreecommitdiffstats
path: root/usr/local/www/code-syntax-highlighter
diff options
context:
space:
mode:
authorayvis <ayvis.infra@gmail.com>2014-03-19 23:38:56 +0100
committerayvis <ayvis.infra@gmail.com>2014-03-19 23:38:56 +0100
commit91f026b02c06751028965bb28cc354dca547f548 (patch)
tree7f8bc722e13a256296d464778e3c7446f1f97c19 /usr/local/www/code-syntax-highlighter
parentec879e3db4d36212ee200d19e1f7e92f9f4d83c9 (diff)
downloadpfsense-91f026b02c06751028965bb28cc354dca547f548.zip
pfsense-91f026b02c06751028965bb28cc354dca547f548.tar.gz
replaced uppercase html tags with lowercase
js files saved as UTF-8 / LF language="JavaScript" deprecated, replaced with type="text/javascript"
Diffstat (limited to 'usr/local/www/code-syntax-highlighter')
-rw-r--r--usr/local/www/code-syntax-highlighter/shCore.js12
-rw-r--r--usr/local/www/code-syntax-highlighter/shCore.uncompressed.js24
2 files changed, 18 insertions, 18 deletions
diff --git a/usr/local/www/code-syntax-highlighter/shCore.js b/usr/local/www/code-syntax-highlighter/shCore.js
index 7193620..e830438 100644
--- a/usr/local/www/code-syntax-highlighter/shCore.js
+++ b/usr/local/www/code-syntax-highlighter/shCore.js
@@ -19,8 +19,8 @@
**
* Usage example:
*
- * <script src="shCore.js" language="javascript"></script>
- * <script src="shBrushXml.js" language="javascript"></script>
+ * <script src="shCore.js" type="text/javascript"></script>
+ * <script src="shBrushXml.js" type="text/javascript"></script>
*
* <textarea name="code" language="html">
* <img src="myimage.gif" border="0">
@@ -98,7 +98,7 @@ dp.sh.Utils.PrintSource = function(sender)
{
var td = sender.parentNode;
var code = td.processedCode;
- var iframe = document.createElement('IFRAME');
+ var iframe = document.createElement('iframe');
var doc = null;
var wnd =
@@ -430,8 +430,8 @@ dp.sh.Highlighter.prototype.Highlight = function(code)
this.originalCode = code;
this.code = Trim(code);
- this.div = document.createElement('DIV');
- this.table = document.createElement('TABLE');
+ this.div = document.createElement('div');
+ this.table = document.createElement('table');
this.matches = new Array();
if(this.CssClass != null)
@@ -579,7 +579,7 @@ dp.sh.HighlightAll = function(name, showGutter /* optional */, showControls /* o
highlighter.Highlight(element[propertyName]);
// place the result table inside a div
- var div = document.createElement('DIV');
+ var div = document.createElement('div');
div.className = 'dp-highlighter';
div.appendChild(highlighter.table);
diff --git a/usr/local/www/code-syntax-highlighter/shCore.uncompressed.js b/usr/local/www/code-syntax-highlighter/shCore.uncompressed.js
index 0903a07..8d92721 100644
--- a/usr/local/www/code-syntax-highlighter/shCore.uncompressed.js
+++ b/usr/local/www/code-syntax-highlighter/shCore.uncompressed.js
@@ -121,7 +121,7 @@ dp.sh.Toolbar.Commands = {
// creates a <div /> with all toolbar links
dp.sh.Toolbar.Create = function(highlighter)
{
- var div = document.createElement('DIV');
+ var div = document.createElement('div');
div.className = 'tools';
@@ -214,7 +214,7 @@ dp.sh.Highlighter.SortCallback = function(m1, m2)
return 0;
}
-dp.sh.Highlighter.prototype.CreateElement = function(name)
+dp.sh.Highlighter.prototype.createElement = function(name)
{
var result = document.createElement(name);
result.highlighter = this;
@@ -236,7 +236,7 @@ dp.sh.Highlighter.prototype.AddBit = function(str, css)
if(str == null || str.length == 0)
return;
- var span = this.CreateElement('span');
+ var span = this.createElement('span');
str = str.replace(/&/g, '&amp;');
str = str.replace(/ /g, '&nbsp;');
@@ -257,7 +257,7 @@ dp.sh.Highlighter.prototype.AddBit = function(str, css)
for(var i = 0; i < lines.length; i++)
{
- span = this.CreateElement('span');
+ span = this.createElement('span');
span.className = css;
span.innerHTML = lines[i];
@@ -265,7 +265,7 @@ dp.sh.Highlighter.prototype.AddBit = function(str, css)
// don't add a <br /> for the last line
if(i + 1 < lines.length)
- this.div.appendChild(this.CreateElement('br'));
+ this.div.appendChild(this.createElement('br'));
}
}
else
@@ -369,8 +369,8 @@ dp.sh.Highlighter.prototype.SwitchToList = function()
// add columns ruler
if(this.showColumns)
{
- var div = this.CreateElement('div');
- var columns = this.CreateElement('div');
+ var div = this.createElement('div');
+ var columns = this.createElement('div');
var showEvery = 10;
var i = 1;
@@ -395,8 +395,8 @@ dp.sh.Highlighter.prototype.SwitchToList = function()
for(var i = 0, lineIndex = this.firstLine; i < lines.length - 1; i++, lineIndex++)
{
- var li = this.CreateElement('LI');
- var span = this.CreateElement('SPAN');
+ var li = this.createElement('li');
+ var span = this.createElement('span');
// uses .line1 and .line2 css styles for alternating lines
li.className = (i % 2 == 0) ? 'alt' : '';
@@ -458,9 +458,9 @@ dp.sh.Highlighter.prototype.Highlight = function(code)
this.originalCode = code;
this.code = Chop(Unindent(code));
- this.div = this.CreateElement('DIV');
- this.bar = this.CreateElement('DIV');
- this.ol = this.CreateElement('OL');
+ this.div = this.createElement('div');
+ this.bar = this.createElement('div');
+ this.ol = this.createElement('ol');
this.matches = new Array();
this.div.className = 'dp-highlighter';
OpenPOWER on IntegriCloud