PageRenderTime 251ms CodeModel.GetById 81ms app.highlight 75ms RepoModel.GetById 86ms app.codeStats 0ms

/Issues/Issue15.html

http://syntaxhighlighter.googlecode.com/
HTML | 113 lines | 91 code | 2 blank | 20 comment | 0 complexity | d8bf464427471f80c00a2820e1f16473 MD5 | raw file
  1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2<!--
  3  Code Syntax Highlighter
  4  Version 1.5.2
  5  Copyright (C) 2004-2008 Alex Gorbatchev
  6  http://www.dreamprojections.com/syntaxhighlighter/
  7 
  8   This program is free software: you can redistribute it and/or modify
  9   it under the terms of the GNU General Public License as published by
 10   the Free Software Foundation, version 3 of the License.
 11 
 12   This program is distributed in the hope that it will be useful,
 13   but WITHOUT ANY WARRANTY; without even the implied warranty of
 14   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 15   GNU General Public License for more details.
 16 
 17   You should have received a copy of the GNU General Public License
 18   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 19-->
 20<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Test.dwt" codeOutsideHTMLIsLocked="false" -->
 21<head>
 22<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 23<title>dp.SyntaxHighlighter Tests</title>
 24<link type="text/css" rel="stylesheet" href="../Styles/SyntaxHighlighter.css">
 25</link>
 26<link href="../Styles/TestPages.css" rel="stylesheet" type="text/css">
 27</link>
 28</head>
 29<body>
 30<h1>dp.SyntaxHighlighter 1.5.2 Tests and Samples</h1>
 31<p><a href="http://code.google.com/p/syntaxhighlighter/">http://code.google.com/p/syntaxhighlighter/</a></p>
 32<h2><!-- InstanceBeginEditable name="Title" -->Issue #15. Incorrect signle quotes.<!-- InstanceEndEditable --></h2>
 33<div class="layout">
 34	<div class="column1">
 35		<h3>Languages:</h3>
 36		<ol>
 37			<li><a href="../CSharp.html">C#</a></li>
 38			<li><a href="../CSS.html">CSS</a></li>
 39			<li><a href="../Cpp.html">C++</a></li>
 40			<li><a href="../Delphi.html">Delphi</a></li>
 41			<li><a href="../Java.html">Java</a></li>
 42			<li><a href="../JavaScript.html">JavaScript</a></li>
 43			<li><a href="../PHP.html">PHP</a></li>
 44			<li><a href="../Python.html">Python</a></li>
 45			<li><a href="../Ruby.html">Ruby</a></li>
 46			<li><a href="../SQL.html">SQL</a></li>
 47			<li><a href="../VB.html">Visual Basic</a></li>
 48			<li><a href="../XML.html">XML / HTML</a></li>
 49			<li><a href="../Scala.html">Scala</a></li>
 50			<li><a href="../Groovy.html">Groovy</a></li>
 51			<li><a href="../Bash.html">Bash</a></li>
 52		</ol>
 53		<h3>Features:</h3>
 54		<ol>
 55			<li><a href="../SmartTabs.html">Smart tabs</a></li>
 56			<li><a href="../FirstLine.html">First line</a> </li>
 57			<li><a href="../CollapseCode.html">Expand code</a></li>
 58			<li><a href="../ShowColumns.html">Show columns</a></li>
 59			<li><a href="../Blogger.html">Blogger integration</a></li>
 60			<li><a href="../NoGutter.html">No gutter</a></li>
 61			<li><a href="../NoControls.html">No controls</a></li>
 62		</ol>
 63		<h3>Issues:</h3>
 64		<ol>
 65			<li><a href="Issue7.xml">#7, XSL transformation</a></li>
 66			<li><a href="Issue15.html">#15, Incorrect single quote</a></li>
 67			<li><a href="Issue10.html">#10, VB crash</a></li>
 68			<li><a href="Issue19.html">#19, No matches</a></li>
 69		</ol>
 70	</div>
 71	<div class="column2">
 72		<div class="block-box">Block before.</div>
 73		<!-- InstanceBeginEditable name="Code" -->
 74Test for <a href="http://code.google.com/p/syntaxhighlighter/issues/detail?id=15">issue #15</a>.
 75
 76Must properly highlight 'hello'.
 77<pre name="code" class="js">// This comment has a ' character.
 78line_ok();
 79a_string = 'hello';
 80line_bad();
 81// This comment has a ' character.
 82</pre>
 83<!-- InstanceEndEditable -->
 84		<div class="block-box">Block after.</div>
 85	</div>
 86</div>
 87<div class="footer"> Copyright 2004-2008 Alex Gorbatchev.<br/>
 88</div>
 89<script class="javascript" src="../Scripts/shCore.js"></script>
 90<script class="javascript" src="../Scripts/shBrushCSharp.js"></script>
 91<script class="javascript" src="../Scripts/shBrushPhp.js"></script>
 92<script class="javascript" src="../Scripts/shBrushJScript.js"></script>
 93<script class="javascript" src="../Scripts/shBrushJava.js"></script>
 94<script class="javascript" src="../Scripts/shBrushVb.js"></script>
 95<script class="javascript" src="../Scripts/shBrushSql.js"></script>
 96<script class="javascript" src="../Scripts/shBrushXml.js"></script>
 97<script class="javascript" src="../Scripts/shBrushDelphi.js"></script>
 98<script class="javascript" src="../Scripts/shBrushPython.js"></script>
 99<script class="javascript" src="../Scripts/shBrushRuby.js"></script>
100<script class="javascript" src="../Scripts/shBrushCss.js"></script>
101<script class="javascript" src="../Scripts/shBrushCpp.js"></script>
102<script class="javascript" src="../Scripts/shBrushScala.js"></script>
103<script class="javascript" src="../Scripts/shBrushGroovy.js"></script>
104<script class="javascript" src="../Scripts/shBrushBash.js"></script>
105<script class="javascript">
106      if(window.isBloggerMode == true)
107      dp.SyntaxHighlighter.BloggerMode();
108      
109      dp.SyntaxHighlighter.ClipboardSwf = 'Scripts/clipboard.swf';
110      dp.SyntaxHighlighter.HighlightAll('code');
111    </script>
112</body>
113<!-- InstanceEnd --></html>