Permalink
Browse files

move all codex assests into generator

  • Loading branch information...
1 parent 4a41401 commit 802e1244ef3272b0bd1b9d8e2c5ba9ba36335d99 @drnic drnic committed May 18, 2008
Showing with 72 additions and 4,577 deletions.
  1. +54 −49 Manifest.txt
  2. +0 −38 README.markdown
  3. +18 −35 README.txt
  4. +0 −47 bin/build_all.rb
  5. +0 −5 bin/postprocess_all.rb
  6. +0 −7 bin/pressie.rb
  7. +0 −115 dp.SyntaxHighlighter/CSS.html
  8. +0 −134 dp.SyntaxHighlighter/CSharp.html
  9. +0 −90 dp.SyntaxHighlighter/CollapseCode.html
  10. +0 −190 dp.SyntaxHighlighter/Cpp.html
  11. +0 −108 dp.SyntaxHighlighter/CrashTest.html
  12. +0 −112 dp.SyntaxHighlighter/Delphi.html
  13. +0 −90 dp.SyntaxHighlighter/FirstLine.html
  14. +0 −80 dp.SyntaxHighlighter/Index.html
  15. +0 −122 dp.SyntaxHighlighter/Java.html
  16. +0 −112 dp.SyntaxHighlighter/JavaScript.html
  17. +0 −89 dp.SyntaxHighlighter/NoControls.html
  18. +0 −89 dp.SyntaxHighlighter/NoGutter.html
  19. +0 −102 dp.SyntaxHighlighter/PHP.html
  20. +0 −121 dp.SyntaxHighlighter/Python.html
  21. +0 −131 dp.SyntaxHighlighter/Ruby.html
  22. +0 −98 dp.SyntaxHighlighter/SQL.html
  23. BIN dp.SyntaxHighlighter/Scripts/clipboard.swf
  24. +0 −32 dp.SyntaxHighlighter/Scripts/shBrushCSharp.js
  25. +0 −73 dp.SyntaxHighlighter/Scripts/shBrushCpp.js
  26. +0 −52 dp.SyntaxHighlighter/Scripts/shBrushCss.js
  27. +0 −34 dp.SyntaxHighlighter/Scripts/shBrushDelphi.js
  28. +0 −22 dp.SyntaxHighlighter/Scripts/shBrushJScript.js
  29. +0 −28 dp.SyntaxHighlighter/Scripts/shBrushJava.js
  30. +0 −60 dp.SyntaxHighlighter/Scripts/shBrushPhp.js
  31. +0 −30 dp.SyntaxHighlighter/Scripts/shBrushPython.js
  32. +0 −28 dp.SyntaxHighlighter/Scripts/shBrushRuby.js
  33. +0 −42 dp.SyntaxHighlighter/Scripts/shBrushSql.js
  34. +0 −29 dp.SyntaxHighlighter/Scripts/shBrushVb.js
  35. +0 −70 dp.SyntaxHighlighter/Scripts/shBrushXml.js
  36. +0 −414 dp.SyntaxHighlighter/Scripts/shCore.js
  37. +0 −674 dp.SyntaxHighlighter/Scripts/shCore.uncompressed.js
  38. +0 −89 dp.SyntaxHighlighter/ShowColumns.html
  39. +0 −88 dp.SyntaxHighlighter/SmartTabs.html
  40. +0 −158 dp.SyntaxHighlighter/Styles/SyntaxHighlighter.css
  41. +0 −63 dp.SyntaxHighlighter/Styles/TestPages.css
  42. +0 −80 dp.SyntaxHighlighter/Templates/Test.dwt
  43. +0 −115 dp.SyntaxHighlighter/VB.html
  44. +0 −136 dp.SyntaxHighlighter/XML.html
  45. +0 −37 slides/basics.slides
  46. +0 −27 slides/building.slides
  47. +0 −80 slides/example.slides
  48. +0 −80 slides/including_code.slides
  49. +0 −4 slides/metadata.yml
  50. +0 −14 slides/table_of_contents.slides
  51. +0 −54 tasks/codex.rake
View
103 Manifest.txt
@@ -2,56 +2,66 @@ History.txt
LICENSE.txt
Manifest.txt
PostInstall.txt
-README.markdown
README.txt
Rakefile
-bin/build_all.rb
-bin/postprocess_all.rb
-bin/pressie.rb
+app_generators/codex/USAGE
+app_generators/codex/codex_generator.rb
+app_generators/codex/templates/Rakefile
+app_generators/codex/templates/bin/build_all.rb
+app_generators/codex/templates/bin/postprocess_all.rb
+app_generators/codex/templates/bin/pressie.rb
+app_generators/codex/templates/dp.SyntaxHighlighter/CSS.html
+app_generators/codex/templates/dp.SyntaxHighlighter/CSharp.html
+app_generators/codex/templates/dp.SyntaxHighlighter/CollapseCode.html
+app_generators/codex/templates/dp.SyntaxHighlighter/Cpp.html
+app_generators/codex/templates/dp.SyntaxHighlighter/CrashTest.html
+app_generators/codex/templates/dp.SyntaxHighlighter/Delphi.html
+app_generators/codex/templates/dp.SyntaxHighlighter/FirstLine.html
+app_generators/codex/templates/dp.SyntaxHighlighter/Index.html
+app_generators/codex/templates/dp.SyntaxHighlighter/Java.html
+app_generators/codex/templates/dp.SyntaxHighlighter/JavaScript.html
+app_generators/codex/templates/dp.SyntaxHighlighter/NoControls.html
+app_generators/codex/templates/dp.SyntaxHighlighter/NoGutter.html
+app_generators/codex/templates/dp.SyntaxHighlighter/PHP.html
+app_generators/codex/templates/dp.SyntaxHighlighter/Python.html
+app_generators/codex/templates/dp.SyntaxHighlighter/Ruby.html
+app_generators/codex/templates/dp.SyntaxHighlighter/SQL.html
+app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/clipboard.swf
+app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushCSharp.js
+app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushCpp.js
+app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushCss.js
+app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushDelphi.js
+app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushJScript.js
+app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushJava.js
+app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushPhp.js
+app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushPython.js
+app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushRuby.js
+app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushSql.js
+app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushVb.js
+app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushXml.js
+app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shCore.js
+app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shCore.uncompressed.js
+app_generators/codex/templates/dp.SyntaxHighlighter/ShowColumns.html
+app_generators/codex/templates/dp.SyntaxHighlighter/SmartTabs.html
+app_generators/codex/templates/dp.SyntaxHighlighter/Styles/SyntaxHighlighter.css
+app_generators/codex/templates/dp.SyntaxHighlighter/Styles/TestPages.css
+app_generators/codex/templates/dp.SyntaxHighlighter/Templates/Test.dwt
+app_generators/codex/templates/dp.SyntaxHighlighter/VB.html
+app_generators/codex/templates/dp.SyntaxHighlighter/XML.html
+app_generators/codex/templates/html/all.html
+app_generators/codex/templates/slides/basics.slides
+app_generators/codex/templates/slides/building.slides
+app_generators/codex/templates/slides/example.slides
+app_generators/codex/templates/slides/including_code.slides
+app_generators/codex/templates/slides/metadata.yml
+app_generators/codex/templates/slides/table_of_contents.slides
+bin/codex
code/control/basic_continuation.rb
code/control/cc_throw_catch.rb
code/control/closure_continuation.rb
code/control/closure_continuation_2.rb
config/hoe.rb
config/requirements.rb
-dp.SyntaxHighlighter/CSS.html
-dp.SyntaxHighlighter/CSharp.html
-dp.SyntaxHighlighter/CollapseCode.html
-dp.SyntaxHighlighter/Cpp.html
-dp.SyntaxHighlighter/CrashTest.html
-dp.SyntaxHighlighter/Delphi.html
-dp.SyntaxHighlighter/FirstLine.html
-dp.SyntaxHighlighter/Index.html
-dp.SyntaxHighlighter/Java.html
-dp.SyntaxHighlighter/JavaScript.html
-dp.SyntaxHighlighter/NoControls.html
-dp.SyntaxHighlighter/NoGutter.html
-dp.SyntaxHighlighter/PHP.html
-dp.SyntaxHighlighter/Python.html
-dp.SyntaxHighlighter/Ruby.html
-dp.SyntaxHighlighter/SQL.html
-dp.SyntaxHighlighter/Scripts/clipboard.swf
-dp.SyntaxHighlighter/Scripts/shBrushCSharp.js
-dp.SyntaxHighlighter/Scripts/shBrushCpp.js
-dp.SyntaxHighlighter/Scripts/shBrushCss.js
-dp.SyntaxHighlighter/Scripts/shBrushDelphi.js
-dp.SyntaxHighlighter/Scripts/shBrushJScript.js
-dp.SyntaxHighlighter/Scripts/shBrushJava.js
-dp.SyntaxHighlighter/Scripts/shBrushPhp.js
-dp.SyntaxHighlighter/Scripts/shBrushPython.js
-dp.SyntaxHighlighter/Scripts/shBrushRuby.js
-dp.SyntaxHighlighter/Scripts/shBrushSql.js
-dp.SyntaxHighlighter/Scripts/shBrushVb.js
-dp.SyntaxHighlighter/Scripts/shBrushXml.js
-dp.SyntaxHighlighter/Scripts/shCore.js
-dp.SyntaxHighlighter/Scripts/shCore.uncompressed.js
-dp.SyntaxHighlighter/ShowColumns.html
-dp.SyntaxHighlighter/SmartTabs.html
-dp.SyntaxHighlighter/Styles/SyntaxHighlighter.css
-dp.SyntaxHighlighter/Styles/TestPages.css
-dp.SyntaxHighlighter/Templates/Test.dwt
-dp.SyntaxHighlighter/VB.html
-dp.SyntaxHighlighter/XML.html
lib/codex.rb
lib/codex/version.rb
lib/pressie/content.rb
@@ -63,17 +73,12 @@ script/console
script/destroy
script/generate
setup.rb
-slides/basics.slides
-slides/building.slides
-slides/example.slides
-slides/including_code.slides
-slides/metadata.yml
-slides/table_of_contents.slides
-tasks/codex.rake
tasks/deployment.rake
tasks/environment.rake
tasks/website.rake
test/test_codex.rb
+test/test_codex_generator.rb
+test/test_generator_helper.rb
test/test_helper.rb
ui/default/blank.gif
ui/default/bodybg.gif
View
38 README.markdown
@@ -1,38 +0,0 @@
-Codex
------
-
-http://github.com/pragdave/codex
-
-Description
-===========
-
-This is a remarkably trivial package that makes simply HTML-based presentations from
-a set up source files written using Textile. It's designed to help when creating
-slides that contain lots of code, as it allows code to be embedded from external source files.
-This means that the code that you embed can come from running (and tested) programs.
-
-The code in the resulting slides is syntax highlighted, and is hyperlinked to the original
-source file, allowing that file to be brought up in Textmate.
-
-Requirements
-============
-
-* make sure you have Ruby 1.8.6 installed and RubyGems
-, along with the Rake and redcloth gems
-
-Installation
-============
-
- gem install codex
-
-Usage
-=====
-
-* type 'rake all' in the same directory as this README file
-* open html/all.html
-
-License
-=======
-
-See the file LICENSE.txt for details on how this all may be used.
-
View
53 README.txt
@@ -1,48 +1,31 @@
-= codex
+= Codex
-* FIX (url)
+http://github.com/pragdave/codex
-== DESCRIPTION:
+== Description
-FIX (describe your package)
+This is a remarkably trivial package that makes simply HTML-based presentations from
+a set up source files written using Textile. It's designed to help when creating
+slides that contain lots of code, as it allows code to be embedded from external source files.
+This means that the code that you embed can come from running (and tested) programs.
-== FEATURES/PROBLEMS:
+The code in the resulting slides is syntax highlighted, and is hyperlinked to the original
+source file, allowing that file to be brought up in Textmate.
-* FIX (list of features or problems)
+== Requirements
-== SYNOPSIS:
+* make sure you have Ruby 1.8.6 installed and RubyGems
- FIX (code sample of usage)
+== Installation
-== REQUIREMENTS:
+ gem install codex
-* FIX (list of requirements)
+== Usage
-== INSTALL:
+* type 'rake all' in the same directory as this README file
+* open html/all.html
-* FIX (sudo gem install, anything else)
+== License
-== LICENSE:
+See the file LICENSE.txt for details on how this all may be used.
-(The MIT License)
-
-Copyright (c) 2008 FIX
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
47 bin/build_all.rb
@@ -1,47 +0,0 @@
-# We're passed a file containing hyperlinks to the HTML
-# (ie, table_con_contents.slides)
-# and contruct all.slides from it
-require 'yaml'
-
-def usage(msg = nil)
- STDERR.puts "#{__FILE__} metadata contents output"
- if msg
- STDERR.puts
- STDERR.puts msg
- end
- exit 1
-end
-
-BASE = File.join(File.dirname(__FILE__), "..")
-
-metadata_name = ARGV.shift || usage("Missing metadata")
-contents_name = ARGV.shift || usage("Missing table of contents file name")
-op_name = ARGV.shift || usage("Missing output file name")
-
-metadata = YAML.load_file(metadata_name)
-
-contents = File.readlines(contents_name).
- grep(/^\*.*:(.*)\.html/) { File.join(BASE, "slides", "#{$1}.slides") }.
- map {|name| File.read(name) }
-
-File.open(op_name, "w") do |op|
-
- op.puts "h1. #{metadata['title']}\n\n"
- op.puts "bq. #{metadata['author']}\n\n"
-
- op.puts "h1. Contents\n\n"
-
- op.puts %{<div style="font-size: 70%">\n\n}
-
- contents.each do |content|
- content =~ /h1.\s+(.*)/
- STDERR.puts $1
- op.puts "* #{$1}\n\n"
- end
-
- op.puts "</div>\n\n"
-
- contents.each do |content|
- op.puts content.sub(/h1/, 'h1(slide0)').sub(/__END__.*/m, '')
- end
-end
View
5 bin/postprocess_all.rb
@@ -1,5 +0,0 @@
-content = File.read(ARGV[0])
-
-content = content.gsub(/<div class="slide">\s+<h1 class="slide0"/m, %{<div class="title slide">\n<h1})
-
-puts content
View
7 bin/pressie.rb
@@ -1,7 +0,0 @@
-base = File.join(File.dirname(__FILE__), "..")
-$: << File.join(base, "lib")
-
-require 'rubygems'
-require "pressie/pressie"
-
-Pressie::process
View
115 dp.SyntaxHighlighter/CSS.html
@@ -1,115 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Test.dwt" codeOutsideHTMLIsLocked="false" -->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>dp.SyntaxHighlighter Tests</title>
-<link type="text/css" rel="stylesheet" href="Styles/SyntaxHighlighter.css"></link>
-<link href="Styles/TestPages.css" rel="stylesheet" type="text/css">
-</head>
-
-<body>
-
-<h1>dp.SyntaxHighlighter 1.5.0 Tests and Samples</h1>
-<p><a href="http://code.google.com/p/syntaxhighlighter/">http://code.google.com/p/syntaxhighlighter/</a></p>
-
-<h2><!-- InstanceBeginEditable name="Title" -->CSS<!-- InstanceEndEditable --></h2>
-
-<div class="layout">
-
-<div class="column1">
- <h3>Languages:</h3>
- <ol>
- <li><a href="CSharp.html">C#</a></li>
- <li><a href="CSS.html">CSS</a></li>
- <li><a href="Cpp.html">C++</a></li>
- <li><a href="Delphi.html">Delphi</a></li>
- <li><a href="Java.html">Java</a></li>
- <li><a href="JavaScript.html">JavaScript</a></li>
- <li><a href="PHP.html">PHP</a></li>
- <li><a href="Python.html">Python</a></li>
- <li><a href="Ruby.html">Ruby</a></li>
- <li><a href="SQL.html">SQL</a></li>
- <li><a href="VB.html">Visual Basic</a></li>
- <li><a href="XML.html">XML / HTML</a></li>
- </ol>
- <h3>Features:</h3>
- <ol>
- <li><a href="SmartTabs.html">Smart tabs</a></li>
- <li><a href="FirstLine.html">First line</a> </li>
- <li><a href="CollapseCode.html">Expand code</a></li>
- <li><a href="ShowColumns.html">Show columns</a></li>
- <li><a href="NoGutter.html">No gutter</a></li>
- <li><a href="NoControls.html">No controls</a></li>
- </ol>
-</div>
-
-<div class="column2">
-Text body before.
-<hr/>
-<!-- InstanceBeginEditable name="Code" -->
-<pre name="code" class="css">
-/* Main style for the table */
-
-.dp-highlighter
-{
- font-family: "Courier New", Courier, mono;
- font-size: 12px;
- text-align: left;
- border: 1px solid #2B91AF;
- background-color: #fff;
- width: 99%;
- overflow: auto;
- line-height: 100% !important;
- margin: 18px 0px 18px 0px;
-}
-
-.dp-highlighter ol
-{
- margin: 0px 0px 0px 45px;
- padding: 0px;
- color: #2B91AF;
-}
-
-.dp-highlighter ol li
-{
- border-left: 3px solid #6CE26C;
- border-bottom: 1px solid #eee;
- background-color: #fff;
- padding-left: 10px;
-}
-
-.dp-highlighter ol li.alt
-{
- background-color: #f8f8f8;
-}
-</pre>
-<!-- InstanceEndEditable -->
-<hr/>
-Text body after.
-</div>
-</div>
-
-<div class="footer">
-Copyright 2004-2007 Alex Gorbatchev.<br/>
-</div>
-
-<script class="javascript" src="Scripts/shCore.js"></script>
-<script class="javascript" src="Scripts/shBrushCSharp.js"></script>
-<script class="javascript" src="Scripts/shBrushPhp.js"></script>
-<script class="javascript" src="Scripts/shBrushJScript.js"></script>
-<script class="javascript" src="Scripts/shBrushJava.js"></script>
-<script class="javascript" src="Scripts/shBrushVb.js"></script>
-<script class="javascript" src="Scripts/shBrushSql.js"></script>
-<script class="javascript" src="Scripts/shBrushXml.js"></script>
-<script class="javascript" src="Scripts/shBrushDelphi.js"></script>
-<script class="javascript" src="Scripts/shBrushPython.js"></script>
-<script class="javascript" src="Scripts/shBrushRuby.js"></script>
-<script class="javascript" src="Scripts/shBrushCss.js"></script>
-<script class="javascript" src="Scripts/shBrushCpp.js"></script>
-<script class="javascript">
-dp.SyntaxHighlighter.ClipboardSwf = 'Scripts/clipboard.swf';
-dp.SyntaxHighlighter.HighlightAll('code');
-</script>
-
-</body>
-<!-- InstanceEnd --></html>
View
134 dp.SyntaxHighlighter/CSharp.html
@@ -1,134 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Test.dwt" codeOutsideHTMLIsLocked="false" -->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>dp.SyntaxHighlighter Tests</title>
-<link type="text/css" rel="stylesheet" href="Styles/SyntaxHighlighter.css"></link>
-<link href="Styles/TestPages.css" rel="stylesheet" type="text/css">
-</head>
-
-<body>
-
-<h1>dp.SyntaxHighlighter 1.5.0 Tests and Samples</h1>
-<p><a href="http://code.google.com/p/syntaxhighlighter/">http://code.google.com/p/syntaxhighlighter/</a></p>
-
-<h2><!-- InstanceBeginEditable name="Title" -->C#<!-- InstanceEndEditable --></h2>
-
-<div class="layout">
-
-<div class="column1">
- <h3>Languages:</h3>
- <ol>
- <li><a href="CSharp.html">C#</a></li>
- <li><a href="CSS.html">CSS</a></li>
- <li><a href="Cpp.html">C++</a></li>
- <li><a href="Delphi.html">Delphi</a></li>
- <li><a href="Java.html">Java</a></li>
- <li><a href="JavaScript.html">JavaScript</a></li>
- <li><a href="PHP.html">PHP</a></li>
- <li><a href="Python.html">Python</a></li>
- <li><a href="Ruby.html">Ruby</a></li>
- <li><a href="SQL.html">SQL</a></li>
- <li><a href="VB.html">Visual Basic</a></li>
- <li><a href="XML.html">XML / HTML</a></li>
- </ol>
- <h3>Features:</h3>
- <ol>
- <li><a href="SmartTabs.html">Smart tabs</a></li>
- <li><a href="FirstLine.html">First line</a> </li>
- <li><a href="CollapseCode.html">Expand code</a></li>
- <li><a href="ShowColumns.html">Show columns</a></li>
- <li><a href="NoGutter.html">No gutter</a></li>
- <li><a href="NoControls.html">No controls</a></li>
- </ol>
-</div>
-
-<div class="column2">
-Text body before.
-<hr/>
-<!-- InstanceBeginEditable name="Code" -->
-<pre name="code" class="c-sharp">
-string url = "&lt;a href=\"" + someObj.getUrl() + "\" target=\"_blank\">";
-
-// single line comments
-// second single line
-override protected void OnLoad(EventArgs e)
-{
- if(Attributes["class"] != null)
- {
- //_year.CssClass = _month.CssClass = _day.CssClass = Attributes["class"];
- }
- base.OnLoad(e);
-}
-
-/***********************************
- ** Multiline block comments
- **********************************/
-
-/// &lt;summary>
-/// Gets or sets currently selected date of birth or &lt;see cref="DateTime.MinValue"/> if selection is incomplete or invalid.
-/// &lt;/summary>
-public DateTime Date
-{
- String stringWithUrl = "http://blog.dreamprojections.com";
-
- get
- {
- #region Hello world /* shouldn't be a comment */
- try
- {
- /*
- DateTime result = new DateTime(
- int.Parse(_year.SelectedItem.Value),
-// int.Parse(_month.SelectedItem.Value),
- int.Parse(_day.SelectedItem.Value)
- );
-
- i *= 2;
- */
- return result;
- }
- catch
- {
- /* return _minDate; */
- }
- #endregion
- }
- set
- {
- Day = value.Day;
- Month = value.Month;
- Year = value.Year;
- }
-}
-</pre>
-<!-- InstanceEndEditable -->
-<hr/>
-Text body after.
-</div>
-</div>
-
-<div class="footer">
-Copyright 2004-2007 Alex Gorbatchev.<br/>
-</div>
-
-<script class="javascript" src="Scripts/shCore.js"></script>
-<script class="javascript" src="Scripts/shBrushCSharp.js"></script>
-<script class="javascript" src="Scripts/shBrushPhp.js"></script>
-<script class="javascript" src="Scripts/shBrushJScript.js"></script>
-<script class="javascript" src="Scripts/shBrushJava.js"></script>
-<script class="javascript" src="Scripts/shBrushVb.js"></script>
-<script class="javascript" src="Scripts/shBrushSql.js"></script>
-<script class="javascript" src="Scripts/shBrushXml.js"></script>
-<script class="javascript" src="Scripts/shBrushDelphi.js"></script>
-<script class="javascript" src="Scripts/shBrushPython.js"></script>
-<script class="javascript" src="Scripts/shBrushRuby.js"></script>
-<script class="javascript" src="Scripts/shBrushCss.js"></script>
-<script class="javascript" src="Scripts/shBrushCpp.js"></script>
-<script class="javascript">
-dp.SyntaxHighlighter.ClipboardSwf = 'Scripts/clipboard.swf';
-dp.SyntaxHighlighter.HighlightAll('code');
-</script>
-
-</body>
-<!-- InstanceEnd --></html>
View
90 dp.SyntaxHighlighter/CollapseCode.html
@@ -1,90 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Test.dwt" codeOutsideHTMLIsLocked="false" -->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>dp.SyntaxHighlighter Tests</title>
-<link type="text/css" rel="stylesheet" href="Styles/SyntaxHighlighter.css"></link>
-<link href="Styles/TestPages.css" rel="stylesheet" type="text/css">
-</head>
-
-<body>
-
-<h1>dp.SyntaxHighlighter 1.5.0 Tests and Samples</h1>
-<p><a href="http://code.google.com/p/syntaxhighlighter/">http://code.google.com/p/syntaxhighlighter/</a></p>
-
-<h2><!-- InstanceBeginEditable name="Title" -->Collapse Code<!-- InstanceEndEditable --></h2>
-
-<div class="layout">
-
-<div class="column1">
- <h3>Languages:</h3>
- <ol>
- <li><a href="CSharp.html">C#</a></li>
- <li><a href="CSS.html">CSS</a></li>
- <li><a href="Cpp.html">C++</a></li>
- <li><a href="Delphi.html">Delphi</a></li>
- <li><a href="Java.html">Java</a></li>
- <li><a href="JavaScript.html">JavaScript</a></li>
- <li><a href="PHP.html">PHP</a></li>
- <li><a href="Python.html">Python</a></li>
- <li><a href="Ruby.html">Ruby</a></li>
- <li><a href="SQL.html">SQL</a></li>
- <li><a href="VB.html">Visual Basic</a></li>
- <li><a href="XML.html">XML / HTML</a></li>
- </ol>
- <h3>Features:</h3>
- <ol>
- <li><a href="SmartTabs.html">Smart tabs</a></li>
- <li><a href="FirstLine.html">First line</a> </li>
- <li><a href="CollapseCode.html">Expand code</a></li>
- <li><a href="ShowColumns.html">Show columns</a></li>
- <li><a href="NoGutter.html">No gutter</a></li>
- <li><a href="NoControls.html">No controls</a></li>
- </ol>
-</div>
-
-<div class="column2">
-Text body before.
-<hr/>
-<!-- InstanceBeginEditable name="Code" -->
-
-<p>You can have the code collapsed at first by adding <code>collapse</code>.</p>
-<p><code>&lt;pre name="code" class="c-sharp:collapse" /></code></p>
-
-<pre name="code" class="c-sharp:collapse">
-1 2 3 4 5 6 7 8 9
-string path = "";
-string safeReferrer = null;
-FileInfo fileInfo = new FileInfo(string.Format("{0}/{1}", path, image));
-int index = 0;
-</pre>
-<!-- InstanceEndEditable -->
-<hr/>
-Text body after.
-</div>
-</div>
-
-<div class="footer">
-Copyright 2004-2007 Alex Gorbatchev.<br/>
-</div>
-
-<script class="javascript" src="Scripts/shCore.js"></script>
-<script class="javascript" src="Scripts/shBrushCSharp.js"></script>
-<script class="javascript" src="Scripts/shBrushPhp.js"></script>
-<script class="javascript" src="Scripts/shBrushJScript.js"></script>
-<script class="javascript" src="Scripts/shBrushJava.js"></script>
-<script class="javascript" src="Scripts/shBrushVb.js"></script>
-<script class="javascript" src="Scripts/shBrushSql.js"></script>
-<script class="javascript" src="Scripts/shBrushXml.js"></script>
-<script class="javascript" src="Scripts/shBrushDelphi.js"></script>
-<script class="javascript" src="Scripts/shBrushPython.js"></script>
-<script class="javascript" src="Scripts/shBrushRuby.js"></script>
-<script class="javascript" src="Scripts/shBrushCss.js"></script>
-<script class="javascript" src="Scripts/shBrushCpp.js"></script>
-<script class="javascript">
-dp.SyntaxHighlighter.ClipboardSwf = 'Scripts/clipboard.swf';
-dp.SyntaxHighlighter.HighlightAll('code');
-</script>
-
-</body>
-<!-- InstanceEnd --></html>
View
190 dp.SyntaxHighlighter/Cpp.html
@@ -1,190 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Test.dwt" codeOutsideHTMLIsLocked="false" -->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>dp.SyntaxHighlighter Tests</title>
-<link type="text/css" rel="stylesheet" href="Styles/SyntaxHighlighter.css"></link>
-<link href="Styles/TestPages.css" rel="stylesheet" type="text/css">
-</head>
-
-<body>
-
-<h1>dp.SyntaxHighlighter 1.5.0 Tests and Samples</h1>
-<p><a href="http://code.google.com/p/syntaxhighlighter/">http://code.google.com/p/syntaxhighlighter/</a></p>
-
-<h2><!-- InstanceBeginEditable name="Title" -->C++<!-- InstanceEndEditable --></h2>
-
-<div class="layout">
-
-<div class="column1">
- <h3>Languages:</h3>
- <ol>
- <li><a href="CSharp.html">C#</a></li>
- <li><a href="CSS.html">CSS</a></li>
- <li><a href="Cpp.html">C++</a></li>
- <li><a href="Delphi.html">Delphi</a></li>
- <li><a href="Java.html">Java</a></li>
- <li><a href="JavaScript.html">JavaScript</a></li>
- <li><a href="PHP.html">PHP</a></li>
- <li><a href="Python.html">Python</a></li>
- <li><a href="Ruby.html">Ruby</a></li>
- <li><a href="SQL.html">SQL</a></li>
- <li><a href="VB.html">Visual Basic</a></li>
- <li><a href="XML.html">XML / HTML</a></li>
- </ol>
- <h3>Features:</h3>
- <ol>
- <li><a href="SmartTabs.html">Smart tabs</a></li>
- <li><a href="FirstLine.html">First line</a> </li>
- <li><a href="CollapseCode.html">Expand code</a></li>
- <li><a href="ShowColumns.html">Show columns</a></li>
- <li><a href="NoGutter.html">No gutter</a></li>
- <li><a href="NoControls.html">No controls</a></li>
- </ol>
-</div>
-
-<div class="column2">
-Text body before.
-<hr/>
-<!-- InstanceBeginEditable name="Code" -->
-<pre name="code" class="c">
-#include &lt;windows.h>
-#include "winevent.hpp"
-
-#include &lt;time.h>
-#include &lt;stdio.h>
-
-int nInt = 0;
-int nStart = 0;
-int nEnd = 0;
-char buf[255];
-
-//////////////////////////////////////////////////////////////
-// Event handlers
-
-template&lt;>
-LRESULT OnMsg&lt;WM_CREATE>(HWND hWnd, WPARAM wParam, LPARAM lParam)
-{
- strcpy(buf, "Press any key to start test");
- return DefWindowProc(hWnd, WM_CREATE, wParam, lParam);
-}
-
-template&lt;>
-LRESULT OnMsg&lt;WM_KEYDOWN>(HWND hWnd, WPARAM wParam, LPARAM lParam)
-{
- nInt = 0;
- strcpy(buf, "running test, please wait ...");
- InvalidateRect(hWnd, NULL, true);
- SendMessage(hWnd, WM_PAINT, 0, 0);
- nStart = GetTickCount();
- PostMessage(hWnd, WM_TIMER, 0, 0);
- return DefWindowProc(hWnd, WM_KEYDOWN, wParam, lParam);
-}
-
-template&lt;>
-LRESULT OnMsg&lt;WM_TIMER>(HWND hWnd, WPARAM wParam, LPARAM lParam)
-{
- if (nInt++ < 100000) {
- PostMessage(hWnd, WM_TIMER, 0, 0);
- } else {
- nEnd = GetTickCount();
- sprintf(buf, "Time elapsed = %d msec",
- ((nEnd - nStart) * 1000) / CLOCKS_PER_SEC);
- InvalidateRect(hWnd, NULL, true);
- }
- return 0;
-}
-
-template&lt;>
-LRESULT OnMsg&lt;WM_DESTROY>(HWND hWnd, WPARAM wParam, LPARAM lParam)
-{
- PostQuitMessage(0);
- return 0;
-}
-
-template&lt;>
-LRESULT OnMsg&lt;WM_PAINT>(HWND hWnd, WPARAM wParam, LPARAM lParam)
-{
- PAINTSTRUCT ps;
- HDC hdc;
- hdc = BeginPaint(hWnd, &ps);
- TextOut(hdc, 100, 100, buf, static_cast&lt;int>(strlen(buf)));
- EndPaint(hWnd, &ps);
- return DefWindowProc(hWnd, WM_PAINT, wParam, lParam);
-}
-
-/****************************************************
-// Entry point for the application.
-****************************************************/
-
-int WINAPI WinMain(HINSTANCE hInstance,
-HINSTANCE hPrevInstance, LPSTR szCmdLine, int nCmdShow)
-{
- InitMsgHandlers&lt;NULL>();
-
- static char szAppName[] = "demo";
- HWND hwnd;
- MSG msg;
- WNDCLASSEX wndclass;
-
- wndclass.cbSize = sizeof(wndclass);
- wndclass.style = CS_HREDRAW | CS_VREDRAW;
- wndclass.lpfnWndProc = WndProc;
- wndclass.cbClsExtra = 0;
- wndclass.cbWndExtra = 0;
- wndclass.hInstance = hInstance;
- wndclass.hIcon = LoadIcon(NULL, IDI_APPLICATION);
- wndclass.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
- wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
- wndclass.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH);
- wndclass.lpszClassName = szAppName;
- wndclass.lpszMenuName = NULL;
-
- RegisterClassEx(&wndclass);
-
- hwnd = CreateWindow(szAppName, "Static Dispatch Demo",
- WS_OVERLAPPEDWINDOW,
- CW_USEDEFAULT, CW_USEDEFAULT,
- CW_USEDEFAULT, CW_USEDEFAULT,
- NULL, NULL, hInstance, NULL);
-
- ShowWindow(hwnd, nCmdShow);
- UpdateWindow(hwnd);
-
- while ( GetMessage(&msg, NULL, 0, 0) ) {
- TranslateMessage(&msg);
- DispatchMessage(&msg);
- }
- return static_cast&lt;int>(msg.wParam);
-}
-</pre>
-<!-- InstanceEndEditable -->
-<hr/>
-Text body after.
-</div>
-</div>
-
-<div class="footer">
-Copyright 2004-2007 Alex Gorbatchev.<br/>
-</div>
-
-<script class="javascript" src="Scripts/shCore.js"></script>
-<script class="javascript" src="Scripts/shBrushCSharp.js"></script>
-<script class="javascript" src="Scripts/shBrushPhp.js"></script>
-<script class="javascript" src="Scripts/shBrushJScript.js"></script>
-<script class="javascript" src="Scripts/shBrushJava.js"></script>
-<script class="javascript" src="Scripts/shBrushVb.js"></script>
-<script class="javascript" src="Scripts/shBrushSql.js"></script>
-<script class="javascript" src="Scripts/shBrushXml.js"></script>
-<script class="javascript" src="Scripts/shBrushDelphi.js"></script>
-<script class="javascript" src="Scripts/shBrushPython.js"></script>
-<script class="javascript" src="Scripts/shBrushRuby.js"></script>
-<script class="javascript" src="Scripts/shBrushCss.js"></script>
-<script class="javascript" src="Scripts/shBrushCpp.js"></script>
-<script class="javascript">
-dp.SyntaxHighlighter.ClipboardSwf = 'Scripts/clipboard.swf';
-dp.SyntaxHighlighter.HighlightAll('code');
-</script>
-
-</body>
-<!-- InstanceEnd --></html>
View
108 dp.SyntaxHighlighter/CrashTest.html
@@ -1,108 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Test.dwt" codeOutsideHTMLIsLocked="false" -->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>dp.SyntaxHighlighter Tests</title>
-<link type="text/css" rel="stylesheet" href="Styles/SyntaxHighlighter.css"></link>
-<link href="Styles/TestPages.css" rel="stylesheet" type="text/css">
-</head>
-
-<body>
-
-<h1>dp.SyntaxHighlighter 1.5.0 Tests and Samples</h1>
-<p><a href="http://code.google.com/p/syntaxhighlighter/">http://code.google.com/p/syntaxhighlighter/</a></p>
-
-<h2><!-- InstanceBeginEditable name="Title" -->Crash Test<!-- InstanceEndEditable --></h2>
-
-<div class="layout">
-
-<div class="column1">
- <h3>Languages:</h3>
- <ol>
- <li><a href="CSharp.html">C#</a></li>
- <li><a href="CSS.html">CSS</a></li>
- <li><a href="Cpp.html">C++</a></li>
- <li><a href="Delphi.html">Delphi</a></li>
- <li><a href="Java.html">Java</a></li>
- <li><a href="JavaScript.html">JavaScript</a></li>
- <li><a href="PHP.html">PHP</a></li>
- <li><a href="Python.html">Python</a></li>
- <li><a href="Ruby.html">Ruby</a></li>
- <li><a href="SQL.html">SQL</a></li>
- <li><a href="VB.html">Visual Basic</a></li>
- <li><a href="XML.html">XML / HTML</a></li>
- </ol>
- <h3>Features:</h3>
- <ol>
- <li><a href="SmartTabs.html">Smart tabs</a></li>
- <li><a href="FirstLine.html">First line</a> </li>
- <li><a href="CollapseCode.html">Expand code</a></li>
- <li><a href="ShowColumns.html">Show columns</a></li>
- <li><a href="NoGutter.html">No gutter</a></li>
- <li><a href="NoControls.html">No controls</a></li>
- </ol>
-</div>
-
-<div class="column2">
-Text body before.
-<hr/>
-<!-- InstanceBeginEditable name="Code" -->
-<pre name="code" class="js">
-// SINGLE QUOTE ' HANGS
-// retrouver la publication à partir de l`idagence / id type publication --- in this line makes it crash
-if (iIdPublication == 0 && iIdTypePublication != 0 && iIdAgence != 0) {
- sStmtA = "SELECT idpublication "
- + " FROM table1 WITH(NOLOCK) "
- + " WHERE idagence = " + iIdAgence
- + " AND idtypepublication = " + iIdTypePublication;
- using (Sql sql = new Sql("bc", "immobc"))
- iIdPublication = F.ForceInt(sql.ExecScalar(sStmtA));
-}
-
-// alertes pour une publication donnée
-if(iIdPublication != 0) {
- using(Sql oSql = new Sql("aboemail")) {
- sStmt = "SELECT table1.*, table3.*, table2.month, table2.year, "
- + " table2.nbsends as nbsends2 "
- + " FROM table1 WITH(NOLOCK) "
- + " LEFT JOIN table2 WITH(NOLOCK) ON table1.idabo_email=table2.idabo_email "
- + " INNER JOIN table3 WITH(NOLOCK) ON table1.idabotypeaction = table3.idabotypeaction "
- + " WHERE idpublication = " + iIdPublication + sWhereSup
- + " ORDER BY table1.idabo_email, table2.year DESC, table2.month DESC";
- oDS=oSql.ExecCached(sStmt);
- }
-}
-//Mail.SendMail("glop@glop.com","glop@glop.com","abo",sStmtP + " " + sStmtA + " " + sStmt,false);
-string[] AMonths = new string[12] { "Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Aout","Septembre","Octobre","Novembre","Décembre" };
-DicContext["AMonths"] = AMonths;
-</pre>
-<!-- InstanceEndEditable -->
-<hr/>
-Text body after.
-</div>
-</div>
-
-<div class="footer">
-Copyright 2004-2007 Alex Gorbatchev.<br/>
-</div>
-
-<script class="javascript" src="Scripts/shCore.js"></script>
-<script class="javascript" src="Scripts/shBrushCSharp.js"></script>
-<script class="javascript" src="Scripts/shBrushPhp.js"></script>
-<script class="javascript" src="Scripts/shBrushJScript.js"></script>
-<script class="javascript" src="Scripts/shBrushJava.js"></script>
-<script class="javascript" src="Scripts/shBrushVb.js"></script>
-<script class="javascript" src="Scripts/shBrushSql.js"></script>
-<script class="javascript" src="Scripts/shBrushXml.js"></script>
-<script class="javascript" src="Scripts/shBrushDelphi.js"></script>
-<script class="javascript" src="Scripts/shBrushPython.js"></script>
-<script class="javascript" src="Scripts/shBrushRuby.js"></script>
-<script class="javascript" src="Scripts/shBrushCss.js"></script>
-<script class="javascript" src="Scripts/shBrushCpp.js"></script>
-<script class="javascript">
-dp.SyntaxHighlighter.ClipboardSwf = 'Scripts/clipboard.swf';
-dp.SyntaxHighlighter.HighlightAll('code');
-</script>
-
-</body>
-<!-- InstanceEnd --></html>
View
112 dp.SyntaxHighlighter/Delphi.html
@@ -1,112 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Test.dwt" codeOutsideHTMLIsLocked="false" -->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>dp.SyntaxHighlighter Tests</title>
-<link type="text/css" rel="stylesheet" href="Styles/SyntaxHighlighter.css"></link>
-<link href="Styles/TestPages.css" rel="stylesheet" type="text/css">
-</head>
-
-<body>
-
-<h1>dp.SyntaxHighlighter 1.5.0 Tests and Samples</h1>
-<p><a href="http://code.google.com/p/syntaxhighlighter/">http://code.google.com/p/syntaxhighlighter/</a></p>
-
-<h2><!-- InstanceBeginEditable name="Title" -->Delphi<!-- InstanceEndEditable --></h2>
-
-<div class="layout">
-
-<div class="column1">
- <h3>Languages:</h3>
- <ol>
- <li><a href="CSharp.html">C#</a></li>
- <li><a href="CSS.html">CSS</a></li>
- <li><a href="Cpp.html">C++</a></li>
- <li><a href="Delphi.html">Delphi</a></li>
- <li><a href="Java.html">Java</a></li>
- <li><a href="JavaScript.html">JavaScript</a></li>
- <li><a href="PHP.html">PHP</a></li>
- <li><a href="Python.html">Python</a></li>
- <li><a href="Ruby.html">Ruby</a></li>
- <li><a href="SQL.html">SQL</a></li>
- <li><a href="VB.html">Visual Basic</a></li>
- <li><a href="XML.html">XML / HTML</a></li>
- </ol>
- <h3>Features:</h3>
- <ol>
- <li><a href="SmartTabs.html">Smart tabs</a></li>
- <li><a href="FirstLine.html">First line</a> </li>
- <li><a href="CollapseCode.html">Expand code</a></li>
- <li><a href="ShowColumns.html">Show columns</a></li>
- <li><a href="NoGutter.html">No gutter</a></li>
- <li><a href="NoControls.html">No controls</a></li>
- </ol>
-</div>
-
-<div class="column2">
-Text body before.
-<hr/>
-<!-- InstanceBeginEditable name="Code" -->
-<pre name="code" class="delphi">
-{$IFDEF VER140}
-(***********************************
- ** Multiline block comments
- **********************************)
-procedure TForm1.Button1Click(Sender: TObject);
-var
- Number, I, X: Integer;
- Y: Integer;
-begin
- str := 'http://blog.dreamprojections.com';
-
- Number := 12356;
- Caption := 'The Number is ' + IntToStr(Number);
- for I := 0 to Number do
- begin
- Inc(X);
- {
- Dec(X);
- X := X * 1.0;
- }
- Y := $F5D3;
- ListBox1.Items.Add(IntToStr(X));
-
- (*
- ShowMessage('Hello'); *)
- end;
- asm
- MOV AX,1234H
-// MOV Number,AX
- end;
-end;
-</pre>
-<!-- InstanceEndEditable -->
-<hr/>
-Text body after.
-</div>
-</div>
-
-<div class="footer">
-Copyright 2004-2007 Alex Gorbatchev.<br/>
-</div>
-
-<script class="javascript" src="Scripts/shCore.js"></script>
-<script class="javascript" src="Scripts/shBrushCSharp.js"></script>
-<script class="javascript" src="Scripts/shBrushPhp.js"></script>
-<script class="javascript" src="Scripts/shBrushJScript.js"></script>
-<script class="javascript" src="Scripts/shBrushJava.js"></script>
-<script class="javascript" src="Scripts/shBrushVb.js"></script>
-<script class="javascript" src="Scripts/shBrushSql.js"></script>
-<script class="javascript" src="Scripts/shBrushXml.js"></script>
-<script class="javascript" src="Scripts/shBrushDelphi.js"></script>
-<script class="javascript" src="Scripts/shBrushPython.js"></script>
-<script class="javascript" src="Scripts/shBrushRuby.js"></script>
-<script class="javascript" src="Scripts/shBrushCss.js"></script>
-<script class="javascript" src="Scripts/shBrushCpp.js"></script>
-<script class="javascript">
-dp.SyntaxHighlighter.ClipboardSwf = 'Scripts/clipboard.swf';
-dp.SyntaxHighlighter.HighlightAll('code');
-</script>
-
-</body>
-<!-- InstanceEnd --></html>
View
90 dp.SyntaxHighlighter/FirstLine.html
@@ -1,90 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Test.dwt" codeOutsideHTMLIsLocked="false" -->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>dp.SyntaxHighlighter Tests</title>
-<link type="text/css" rel="stylesheet" href="Styles/SyntaxHighlighter.css"></link>
-<link href="Styles/TestPages.css" rel="stylesheet" type="text/css">
-</head>
-
-<body>
-
-<h1>dp.SyntaxHighlighter 1.5.0 Tests and Samples</h1>
-<p><a href="http://code.google.com/p/syntaxhighlighter/">http://code.google.com/p/syntaxhighlighter/</a></p>
-
-<h2><!-- InstanceBeginEditable name="Title" -->First Line<!-- InstanceEndEditable --></h2>
-
-<div class="layout">
-
-<div class="column1">
- <h3>Languages:</h3>
- <ol>
- <li><a href="CSharp.html">C#</a></li>
- <li><a href="CSS.html">CSS</a></li>
- <li><a href="Cpp.html">C++</a></li>
- <li><a href="Delphi.html">Delphi</a></li>
- <li><a href="Java.html">Java</a></li>
- <li><a href="JavaScript.html">JavaScript</a></li>
- <li><a href="PHP.html">PHP</a></li>
- <li><a href="Python.html">Python</a></li>
- <li><a href="Ruby.html">Ruby</a></li>
- <li><a href="SQL.html">SQL</a></li>
- <li><a href="VB.html">Visual Basic</a></li>
- <li><a href="XML.html">XML / HTML</a></li>
- </ol>
- <h3>Features:</h3>
- <ol>
- <li><a href="SmartTabs.html">Smart tabs</a></li>
- <li><a href="FirstLine.html">First line</a> </li>
- <li><a href="CollapseCode.html">Expand code</a></li>
- <li><a href="ShowColumns.html">Show columns</a></li>
- <li><a href="NoGutter.html">No gutter</a></li>
- <li><a href="NoControls.html">No controls</a></li>
- </ol>
-</div>
-
-<div class="column2">
-Text body before.
-<hr/>
-<!-- InstanceBeginEditable name="Code" -->
-
-<p>You can change the starting line number by adding <code>firstline[#]</code>.</p>
-<p><code>&lt;textarea name="code" class="c#:firstline[42]" rows="15" cols="100"></code></p>
-
-<pre name="code" class="c-sharp:firstline[42]">
-1 2 3 4 5 6 7 8 9
-string path = "";
-string safeReferrer = null;
-FileInfo fileInfo = new FileInfo(string.Format("{0}/{1}", path, image));
-int index = 0;
-</pre>
-<!-- InstanceEndEditable -->
-<hr/>
-Text body after.
-</div>
-</div>
-
-<div class="footer">
-Copyright 2004-2007 Alex Gorbatchev.<br/>
-</div>
-
-<script class="javascript" src="Scripts/shCore.js"></script>
-<script class="javascript" src="Scripts/shBrushCSharp.js"></script>
-<script class="javascript" src="Scripts/shBrushPhp.js"></script>
-<script class="javascript" src="Scripts/shBrushJScript.js"></script>
-<script class="javascript" src="Scripts/shBrushJava.js"></script>
-<script class="javascript" src="Scripts/shBrushVb.js"></script>
-<script class="javascript" src="Scripts/shBrushSql.js"></script>
-<script class="javascript" src="Scripts/shBrushXml.js"></script>
-<script class="javascript" src="Scripts/shBrushDelphi.js"></script>
-<script class="javascript" src="Scripts/shBrushPython.js"></script>
-<script class="javascript" src="Scripts/shBrushRuby.js"></script>
-<script class="javascript" src="Scripts/shBrushCss.js"></script>
-<script class="javascript" src="Scripts/shBrushCpp.js"></script>
-<script class="javascript">
-dp.SyntaxHighlighter.ClipboardSwf = 'Scripts/clipboard.swf';
-dp.SyntaxHighlighter.HighlightAll('code');
-</script>
-
-</body>
-<!-- InstanceEnd --></html>
View
80 dp.SyntaxHighlighter/Index.html
@@ -1,80 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Test.dwt" codeOutsideHTMLIsLocked="false" -->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>dp.SyntaxHighlighter Tests</title>
-<link type="text/css" rel="stylesheet" href="Styles/SyntaxHighlighter.css"></link>
-<link href="Styles/TestPages.css" rel="stylesheet" type="text/css">
-</head>
-
-<body>
-
-<h1>dp.SyntaxHighlighter 1.5.0 Tests and Samples</h1>
-<p><a href="http://code.google.com/p/syntaxhighlighter/">http://code.google.com/p/syntaxhighlighter/</a></p>
-
-<h2><!-- InstanceBeginEditable name="Title" -->About<!-- InstanceEndEditable --></h2>
-
-<div class="layout">
-
-<div class="column1">
- <h3>Languages:</h3>
- <ol>
- <li><a href="CSharp.html">C#</a></li>
- <li><a href="CSS.html">CSS</a></li>
- <li><a href="Cpp.html">C++</a></li>
- <li><a href="Delphi.html">Delphi</a></li>
- <li><a href="Java.html">Java</a></li>
- <li><a href="JavaScript.html">JavaScript</a></li>
- <li><a href="PHP.html">PHP</a></li>
- <li><a href="Python.html">Python</a></li>
- <li><a href="Ruby.html">Ruby</a></li>
- <li><a href="SQL.html">SQL</a></li>
- <li><a href="VB.html">Visual Basic</a></li>
- <li><a href="XML.html">XML / HTML</a></li>
- </ol>
- <h3>Features:</h3>
- <ol>
- <li><a href="SmartTabs.html">Smart tabs</a></li>
- <li><a href="FirstLine.html">First line</a> </li>
- <li><a href="CollapseCode.html">Expand code</a></li>
- <li><a href="ShowColumns.html">Show columns</a></li>
- <li><a href="NoGutter.html">No gutter</a></li>
- <li><a href="NoControls.html">No controls</a></li>
- </ol>
-</div>
-
-<div class="column2">
-Text body before.
-<hr/>
-<!-- InstanceBeginEditable name="Code" -->
-This is the test suite for dp.SyntaxHighlighter JavaScript.
-<!-- InstanceEndEditable -->
-<hr/>
-Text body after.
-</div>
-</div>
-
-<div class="footer">
-Copyright 2004-2007 Alex Gorbatchev.<br/>
-</div>
-
-<script class="javascript" src="Scripts/shCore.js"></script>
-<script class="javascript" src="Scripts/shBrushCSharp.js"></script>
-<script class="javascript" src="Scripts/shBrushPhp.js"></script>
-<script class="javascript" src="Scripts/shBrushJScript.js"></script>
-<script class="javascript" src="Scripts/shBrushJava.js"></script>
-<script class="javascript" src="Scripts/shBrushVb.js"></script>
-<script class="javascript" src="Scripts/shBrushSql.js"></script>
-<script class="javascript" src="Scripts/shBrushXml.js"></script>
-<script class="javascript" src="Scripts/shBrushDelphi.js"></script>
-<script class="javascript" src="Scripts/shBrushPython.js"></script>
-<script class="javascript" src="Scripts/shBrushRuby.js"></script>
-<script class="javascript" src="Scripts/shBrushCss.js"></script>
-<script class="javascript" src="Scripts/shBrushCpp.js"></script>
-<script class="javascript">
-dp.SyntaxHighlighter.ClipboardSwf = 'Scripts/clipboard.swf';
-dp.SyntaxHighlighter.HighlightAll('code');
-</script>
-
-</body>
-<!-- InstanceEnd --></html>
View
122 dp.SyntaxHighlighter/Java.html
@@ -1,122 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Test.dwt" codeOutsideHTMLIsLocked="false" -->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>dp.SyntaxHighlighter Tests</title>
-<link type="text/css" rel="stylesheet" href="Styles/SyntaxHighlighter.css"></link>
-<link href="Styles/TestPages.css" rel="stylesheet" type="text/css">
-</head>
-
-<body>
-
-<h1>dp.SyntaxHighlighter 1.5.0 Tests and Samples</h1>
-<p><a href="http://code.google.com/p/syntaxhighlighter/">http://code.google.com/p/syntaxhighlighter/</a></p>
-
-<h2><!-- InstanceBeginEditable name="Title" -->Java<!-- InstanceEndEditable --></h2>
-
-<div class="layout">
-
-<div class="column1">
- <h3>Languages:</h3>
- <ol>
- <li><a href="CSharp.html">C#</a></li>
- <li><a href="CSS.html">CSS</a></li>
- <li><a href="Cpp.html">C++</a></li>
- <li><a href="Delphi.html">Delphi</a></li>
- <li><a href="Java.html">Java</a></li>
- <li><a href="JavaScript.html">JavaScript</a></li>
- <li><a href="PHP.html">PHP</a></li>
- <li><a href="Python.html">Python</a></li>
- <li><a href="Ruby.html">Ruby</a></li>
- <li><a href="SQL.html">SQL</a></li>
- <li><a href="VB.html">Visual Basic</a></li>
- <li><a href="XML.html">XML / HTML</a></li>
- </ol>
- <h3>Features:</h3>
- <ol>
- <li><a href="SmartTabs.html">Smart tabs</a></li>
- <li><a href="FirstLine.html">First line</a> </li>
- <li><a href="CollapseCode.html">Expand code</a></li>
- <li><a href="ShowColumns.html">Show columns</a></li>
- <li><a href="NoGutter.html">No gutter</a></li>
- <li><a href="NoControls.html">No controls</a></li>
- </ol>
-</div>
-
-<div class="column2">
-Text body before.
-<hr/>
-<!-- InstanceBeginEditable name="Code" -->
-<pre name="code" class="java">
-package us.prokhorenko.jx;
-import us.prokhorenko.jx.Person;
-import org.exolab.castor.xml.*;
-import java.io.*;
-import java.util.*;
-
-public class Test {
- public static void main(String args[]) {
- try {
- /***********************************
- ** Multiline block comments
- **********************************/
-
- string stringWithUrl1 = "http://blog.dreamprojections.com";
-
- // Marshalling class to XML
-
- // Create the Person class
- Person person = new Person("Mr. White", "mr@white", "626-555-1234");
-
- // Marshal and save to XML file
- FileWriter file = new FileWriter("person.xml");
- Marshaller m = new Marshaller(file);
- m.marshal(person);
- file.close();
-
- // Unmarshalling XML to class
-
- // Read from XML and unmarshal
- FileReader uFile = new FileReader("person.xml");
- Unmarshaller u = new Unmarshaller();
- Person uPerson = (Person)u.unmarshal(Person.class, uFile);
-
- // Show name and email
- System.out.println("name: " + uPerson.getName());
- System.out.println("email: " + uPerson.getEmail());
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-}
-</pre>
-<!-- InstanceEndEditable -->
-<hr/>
-Text body after.
-</div>
-</div>
-
-<div class="footer">
-Copyright 2004-2007 Alex Gorbatchev.<br/>
-</div>
-
-<script class="javascript" src="Scripts/shCore.js"></script>
-<script class="javascript" src="Scripts/shBrushCSharp.js"></script>
-<script class="javascript" src="Scripts/shBrushPhp.js"></script>
-<script class="javascript" src="Scripts/shBrushJScript.js"></script>
-<script class="javascript" src="Scripts/shBrushJava.js"></script>
-<script class="javascript" src="Scripts/shBrushVb.js"></script>
-<script class="javascript" src="Scripts/shBrushSql.js"></script>
-<script class="javascript" src="Scripts/shBrushXml.js"></script>
-<script class="javascript" src="Scripts/shBrushDelphi.js"></script>
-<script class="javascript" src="Scripts/shBrushPython.js"></script>
-<script class="javascript" src="Scripts/shBrushRuby.js"></script>
-<script class="javascript" src="Scripts/shBrushCss.js"></script>
-<script class="javascript" src="Scripts/shBrushCpp.js"></script>
-<script class="javascript">
-dp.SyntaxHighlighter.ClipboardSwf = 'Scripts/clipboard.swf';
-dp.SyntaxHighlighter.HighlightAll('code');
-</script>
-
-</body>
-<!-- InstanceEnd --></html>
View
112 dp.SyntaxHighlighter/JavaScript.html
@@ -1,112 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Test.dwt" codeOutsideHTMLIsLocked="false" -->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>dp.SyntaxHighlighter Tests</title>
-<link type="text/css" rel="stylesheet" href="Styles/SyntaxHighlighter.css"></link>
-<link href="Styles/TestPages.css" rel="stylesheet" type="text/css">
-</head>
-
-<body>
-
-<h1>dp.SyntaxHighlighter 1.5.0 Tests and Samples</h1>
-<p><a href="http://code.google.com/p/syntaxhighlighter/">http://code.google.com/p/syntaxhighlighter/</a></p>
-
-<h2><!-- InstanceBeginEditable name="Title" -->JavaScript<!-- InstanceEndEditable --></h2>
-
-<div class="layout">
-
-<div class="column1">
- <h3>Languages:</h3>
- <ol>
- <li><a href="CSharp.html">C#</a></li>
- <li><a href="CSS.html">CSS</a></li>
- <li><a href="Cpp.html">C++</a></li>
- <li><a href="Delphi.html">Delphi</a></li>
- <li><a href="Java.html">Java</a></li>
- <li><a href="JavaScript.html">JavaScript</a></li>
- <li><a href="PHP.html">PHP</a></li>
- <li><a href="Python.html">Python</a></li>
- <li><a href="Ruby.html">Ruby</a></li>
- <li><a href="SQL.html">SQL</a></li>
- <li><a href="VB.html">Visual Basic</a></li>
- <li><a href="XML.html">XML / HTML</a></li>
- </ol>
- <h3>Features:</h3>
- <ol>
- <li><a href="SmartTabs.html">Smart tabs</a></li>
- <li><a href="FirstLine.html">First line</a> </li>
- <li><a href="CollapseCode.html">Expand code</a></li>
- <li><a href="ShowColumns.html">Show columns</a></li>
- <li><a href="NoGutter.html">No gutter</a></li>
- <li><a href="NoControls.html">No controls</a></li>
- </ol>
-</div>
-
-<div class="column2">
-Text body before.
-<hr/>
-<!-- InstanceBeginEditable name="Code" -->
-<pre name="code" class="js">
-/***********************************
- ** Multiline block comments
- **********************************/
-
-// Hang test à partir de l`idagence / id type publication ``````
-
-var stringWithUrl1 = "http://blog.dreamprojections.com";
-var stringWithUrl2 = 'http://www.dreamprojections.com';
-
-// callback for the match sorting
-dpSyntaxHighlighter.prototype.SortCallback = function(m1, m2)
-{
- // sort matches by index first
- if(m1.index < m2.index)
- return -1;
- else if(m1.index > m2.index)
- return 1;
- else
- {
- /*
- // if index is the same, sort by length
- if(m1.length < m2.length)
- return -1;
- else if(m1.length > m2.length)
- return 1;
- */
- }
-
- alert('hello // world');
- return 0;
-}
-</pre>
-<!-- InstanceEndEditable -->
-<hr/>
-Text body after.
-</div>
-</div>
-
-<div class="footer">
-Copyright 2004-2007 Alex Gorbatchev.<br/>
-</div>
-
-<script class="javascript" src="Scripts/shCore.js"></script>
-<script class="javascript" src="Scripts/shBrushCSharp.js"></script>
-<script class="javascript" src="Scripts/shBrushPhp.js"></script>
-<script class="javascript" src="Scripts/shBrushJScript.js"></script>
-<script class="javascript" src="Scripts/shBrushJava.js"></script>
-<script class="javascript" src="Scripts/shBrushVb.js"></script>
-<script class="javascript" src="Scripts/shBrushSql.js"></script>
-<script class="javascript" src="Scripts/shBrushXml.js"></script>
-<script class="javascript" src="Scripts/shBrushDelphi.js"></script>
-<script class="javascript" src="Scripts/shBrushPython.js"></script>
-<script class="javascript" src="Scripts/shBrushRuby.js"></script>
-<script class="javascript" src="Scripts/shBrushCss.js"></script>
-<script class="javascript" src="Scripts/shBrushCpp.js"></script>
-<script class="javascript">
-dp.SyntaxHighlighter.ClipboardSwf = 'Scripts/clipboard.swf';
-dp.SyntaxHighlighter.HighlightAll('code');
-</script>
-
-</body>
-<!-- InstanceEnd --></html>
View
89 dp.SyntaxHighlighter/NoControls.html
@@ -1,89 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Test.dwt" codeOutsideHTMLIsLocked="false" -->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>dp.SyntaxHighlighter Tests</title>
-<link type="text/css" rel="stylesheet" href="Styles/SyntaxHighlighter.css"></link>
-<link href="Styles/TestPages.css" rel="stylesheet" type="text/css">
-</head>
-
-<body>
-
-<h1>dp.SyntaxHighlighter 1.5.0 Tests and Samples</h1>
-<p><a href="http://code.google.com/p/syntaxhighlighter/">http://code.google.com/p/syntaxhighlighter/</a></p>
-
-<h2><!-- InstanceBeginEditable name="Title" -->No controls<!-- InstanceEndEditable --></h2>
-
-<div class="layout">
-
-<div class="column1">
- <h3>Languages:</h3>
- <ol>
- <li><a href="CSharp.html">C#</a></li>
- <li><a href="CSS.html">CSS</a></li>
- <li><a href="Cpp.html">C++</a></li>
- <li><a href="Delphi.html">Delphi</a></li>
- <li><a href="Java.html">Java</a></li>
- <li><a href="JavaScript.html">JavaScript</a></li>
- <li><a href="PHP.html">PHP</a></li>
- <li><a href="Python.html">Python</a></li>
- <li><a href="Ruby.html">Ruby</a></li>
- <li><a href="SQL.html">SQL</a></li>
- <li><a href="VB.html">Visual Basic</a></li>
- <li><a href="XML.html">XML / HTML</a></li>
- </ol>
- <h3>Features:</h3>
- <ol>
- <li><a href="SmartTabs.html">Smart tabs</a></li>
- <li><a href="FirstLine.html">First line</a> </li>
- <li><a href="CollapseCode.html">Expand code</a></li>
- <li><a href="ShowColumns.html">Show columns</a></li>
- <li><a href="NoGutter.html">No gutter</a></li>
- <li><a href="NoControls.html">No controls</a></li>
- </ol>
-</div>
-
-<div class="column2">
-Text body before.
-<hr/>
-<!-- InstanceBeginEditable name="Code" -->
-<p>You can hide the gutter by adding <code>nocontrols</code>.</p>
-<p><code>&lt;textarea name="code" class="c#:nocontrols" rows="15" cols="100"></code></p>
-
-<pre name="code">
-1 2 3 4 5 6 7 8 9 10
-string path = "";
-string safeReferrer = null;
-FileInfo fileInfo = new FileInfo(string.Format("{0}/{1}", path, image));
-int index = 0;
-</pre>
-<!-- InstanceEndEditable -->
-<hr/>
-Text body after.
-</div>
-</div>
-
-<div class="footer">
-Copyright 2004-2007 Alex Gorbatchev.<br/>
-</div>
-
-<script class="javascript" src="Scripts/shCore.js"></script>
-<script class="javascript" src="Scripts/shBrushCSharp.js"></script>
-<script class="javascript" src="Scripts/shBrushPhp.js"></script>
-<script class="javascript" src="Scripts/shBrushJScript.js"></script>
-<script class="javascript" src="Scripts/shBrushJava.js"></script>
-<script class="javascript" src="Scripts/shBrushVb.js"></script>
-<script class="javascript" src="Scripts/shBrushSql.js"></script>
-<script class="javascript" src="Scripts/shBrushXml.js"></script>
-<script class="javascript" src="Scripts/shBrushDelphi.js"></script>
-<script class="javascript" src="Scripts/shBrushPython.js"></script>
-<script class="javascript" src="Scripts/shBrushRuby.js"></script>
-<script class="javascript" src="Scripts/shBrushCss.js"></script>
-<script class="javascript" src="Scripts/shBrushCpp.js"></script>
-<script class="javascript">
-dp.SyntaxHighlighter.ClipboardSwf = 'Scripts/clipboard.swf';
-dp.SyntaxHighlighter.HighlightAll('code');
-</script>
-
-</body>
-<!-- InstanceEnd --></html>
View
89 dp.SyntaxHighlighter/NoGutter.html
@@ -1,89 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Test.dwt" codeOutsideHTMLIsLocked="false" -->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>dp.SyntaxHighlighter Tests</title>
-<link type="text/css" rel="stylesheet" href="Styles/SyntaxHighlighter.css"></link>
-<link href="Styles/TestPages.css" rel="stylesheet" type="text/css">
-</head>
-
-<body>
-
-<h1>dp.SyntaxHighlighter 1.5.0 Tests and Samples</h1>
-<p><a href="http://code.google.com/p/syntaxhighlighter/">http://code.google.com/p/syntaxhighlighter/</a></p>
-
-<h2><!-- InstanceBeginEditable name="Title" -->No gutter<!-- InstanceEndEditable --></h2>
-
-<div class="layout">
-
-<div class="column1">
- <h3>Languages:</h3>
- <ol>
- <li><a href="CSharp.html">C#</a></li>
- <li><a href="CSS.html">CSS</a></li>
- <li><a href="Cpp.html">C++</a></li>
- <li><a href="Delphi.html">Delphi</a></li>
- <li><a href="Java.html">Java</a></li>
- <li><a href="JavaScript.html">JavaScript</a></li>
- <li><a href="PHP.html">PHP</a></li>
- <li><a href="Python.html">Python</a></li>
- <li><a href="Ruby.html">Ruby</a></li>
- <li><a href="SQL.html">SQL</a></li>
- <li><a href="VB.html">Visual Basic</a></li>
- <li><a href="XML.html">XML / HTML</a></li>
- </ol>
- <h3>Features:</h3>
- <ol>
- <li><a href="SmartTabs.html">Smart tabs</a></li>
- <li><a href="FirstLine.html">First line</a> </li>
- <li><a href="CollapseCode.html">Expand code</a></li>
- <li><a href="ShowColumns.html">Show columns</a></li>
- <li><a href="NoGutter.html">No gutter</a></li>
- <li><a href="NoControls.html">No controls</a></li>
- </ol>
-</div>
-
-<div class="column2">
-Text body before.
-<hr/>
-<!-- InstanceBeginEditable name="Code" -->
-<p>You can hide the gutter by adding <code>nogutter</code>.</p>
-<p><code>&lt;pre name="code" class="c-sharp:nogutter" rows="15"/></code></p>
-
-<pre name="code" class="c-sharp:nogutter">
-1 2 3 4 5 6 7 8 9 10
-string path = "";
-string safeReferrer = null;
-FileInfo fileInfo = new FileInfo(string.Format("{0}/{1}", path, image));
-int index = 0;
-</pre>
-<!-- InstanceEndEditable -->
-<hr/>
-Text body after.
-</div>
-</div>
-
-<div class="footer">
-Copyright 2004-2007 Alex Gorbatchev.<br/>
-</div>
-
-<script class="javascript" src="Scripts/shCore.js"></script>
-<script class="javascript" src="Scripts/shBrushCSharp.js"></script>
-<script class="javascript" src="Scripts/shBrushPhp.js"></script>
-<script class="javascript" src="Scripts/shBrushJScript.js"></script>
-<script class="javascript" src="Scripts/shBrushJava.js"></script>
-<script class="javascript" src="Scripts/shBrushVb.js"></script>
-<script class="javascript" src="Scripts/shBrushSql.js"></script>
-<script class="javascript" src="Scripts/shBrushXml.js"></script>
-<script class="javascript" src="Scripts/shBrushDelphi.js"></script>
-<script class="javascript" src="Scripts/shBrushPython.js"></script>
-<script class="javascript" src="Scripts/shBrushRuby.js"></script>
-<script class="javascript" src="Scripts/shBrushCss.js"></script>
-<script class="javascript" src="Scripts/shBrushCpp.js"></script>
-<script class="javascript">
-dp.SyntaxHighlighter.ClipboardSwf = 'Scripts/clipboard.swf';
-dp.SyntaxHighlighter.HighlightAll('code');
-</script>
-
-</body>
-<!-- InstanceEnd --></html>
View
102 dp.SyntaxHighlighter/PHP.html
@@ -1,102 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Test.dwt" codeOutsideHTMLIsLocked="false" -->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>dp.SyntaxHighlighter Tests</title>
-<link type="text/css" rel="stylesheet" href="Styles/SyntaxHighlighter.css"></link>
-<link href="Styles/TestPages.css" rel="stylesheet" type="text/css">
-</head>
-
-<body>
-
-<h1>dp.SyntaxHighlighter 1.5.0 Tests and Samples</h1>
-<p><a href="http://code.google.com/p/syntaxhighlighter/">http://code.google.com/p/syntaxhighlighter/</a></p>
-
-<h2><!-- InstanceBeginEditable name="Title" -->PHP<!-- InstanceEndEditable --></h2>
-
-<div class="layout">
-
-<div class="column1">
- <h3>Languages:</h3>
- <ol>
- <li><a href="CSharp.html">C#</a></li>
- <li><a href="CSS.html">CSS</a></li>
- <li><a href="Cpp.html">C++</a></li>
- <li><a href="Delphi.html">Delphi</a></li>
- <li><a href="Java.html">Java</a></li>
- <li><a href="JavaScript.html">JavaScript</a></li>
- <li><a href="PHP.html">PHP</a></li>
- <li><a href="Python.html">Python</a></li>
- <li><a href="Ruby.html">Ruby</a></li>
- <li><a href="SQL.html">SQL</a></li>
- <li><a href="VB.html">Visual Basic</a></li>
- <li><a href="XML.html">XML / HTML</a></li>
- </ol>
- <h3>Features:</h3>
- <ol>
- <li><a href="SmartTabs.html">Smart tabs</a></li>
- <li><a href="FirstLine.html">First line</a> </li>
- <li><a href="CollapseCode.html">Expand code</a></li>
- <li><a href="ShowColumns.html">Show columns</a></li>
- <li><a href="NoGutter.html">No gutter</a></li>
- <li><a href="NoControls.html">No controls</a></li>
- </ol>
-</div>
-
-<div class="column2">
-Text body before.
-<hr/>
-<!-- InstanceBeginEditable name="Code" -->
-<pre name="code" class="php">
-/***********************************
- ** Multiline block comments
- **********************************/
-
-$stringWithUrl = "http://blog.dreamprojections.com";
-$stringWithUrl = 'http://www.dreamprojections.com';
-
-ob_start("parseOutputBuffer"); // Start Code Buffering
-session_start();
-
-function parseOutputBuffer($buf) {
- global $portal_small_code, $portal_gzcompress;
- global $PHP_SELF, $HTTP_ACCEPT_ENCODING;
-
- // cleaning out the code.
- if($portal_small_code && !$portal_gzcompress) {
- $buf = str_replace(" ", "", $buf);
- $buf = str_replace("\n", "", $buf);
- $buf = str_replace(chr(13), "", $buf);
- }
-}
-</pre>
-<!-- InstanceEndEditable -->
-<hr/>
-Text body after.
-</div>
-</div>
-
-<div class="footer">
-Copyright 2004-2007 Alex Gorbatchev.<br/>
-</div>
-
-<script class="javascript" src="Scripts/shCore.js"></script>
-<script class="javascript" src="Scripts/shBrushCSharp.js"></script>
-<script class="javascript" src="Scripts/shBrushPhp.js"></script>
-<script class="javascript" src="Scripts/shBrushJScript.js"></script>
-<script class="javascript" src="Scripts/shBrushJava.js"></script>
-<script class="javascript" src="Scripts/shBrushVb.js"></script>
-<script class="javascript" src="Scripts/shBrushSql.js"></script>
-<script class="javascript" src="Scripts/shBrushXml.js"></script>
-<script class="javascript" src="Scripts/shBrushDelphi.js"></script>
-<script class="javascript" src="Scripts/shBrushPython.js"></script>
-<script class="javascript" src="Scripts/shBrushRuby.js"></script>
-<script class="javascript" src="Scripts/shBrushCss.js"></script>
-<script class="javascript" src="Scripts/shBrushCpp.js"></script>
-<script class="javascript">
-dp.SyntaxHighlighter.ClipboardSwf = 'Scripts/clipboard.swf';
-dp.SyntaxHighlighter.HighlightAll('code');
-</script>
-
-</body>
-<!-- InstanceEnd --></html>
View
121 dp.SyntaxHighlighter/Python.html
@@ -1,121 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Test.dwt" codeOutsideHTMLIsLocked="false" -->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>dp.SyntaxHighlighter Tests</title>
-<link type="text/css" rel="stylesheet" href="Styles/SyntaxHighlighter.css"></link>
-<link href="Styles/TestPages.css" rel="stylesheet" type="text/css">
-</head>
-
-<body>
-
-<h1>dp.SyntaxHighlighter 1.5.0 Tests and Samples</h1>
-<p><a href="http://code.google.com/p/syntaxhighlighter/">http://code.google.com/p/syntaxhighlighter/</a></p>
-
-<h2><!-- InstanceBeginEditable name="Title" -->Python<!-- InstanceEndEditable --></h2>
-
-<div class="layout">
-
-<div class="column1">
- <h3>Languages:</h3>
- <ol>
- <li><a href="CSharp.html">C#</a></li>
- <li><a href="CSS.html">CSS</a></li>
- <li><a href="Cpp.html">C++</a></li>
- <li><a href="Delphi.html">Delphi</a></li>
- <li><a href="Java.html">Java</a></li>
- <li><a href="JavaScript.html">JavaScript</a></li>
- <li><a href="PHP.html">PHP</a></li>
- <li><a href="Python.html">Python</a></li>
- <li><a href="Ruby.html">Ruby</a></li>
- <li><a href="SQL.html">SQL</a></li>
- <li><a href="VB.html">Visual Basic</a></li>
- <li><a href="XML.html">XML / HTML</a></li>
- </ol>
- <h3>Features:</h3>
- <ol>
- <li><a href="SmartTabs.html">Smart tabs</a></li>
- <li><a href="FirstLine.html">First line</a> </li>
- <li><a href="CollapseCode.html">Expand code</a></li>
- <li><a href="ShowColumns.html">Show columns</a></li>
- <li><a href="NoGutter.html">No gutter</a></li>
- <li><a href="NoControls.html">No controls</a></li>
- </ol>
-</div>
-
-<div class="column2">
-Text body before.
-<hr/>
-<!-- InstanceBeginEditable name="Code" -->
-<pre name="code" class="python">
-"""
-Comment\"
-string
-"""
-
-cache = {}
-
-string s = "## comments inside a string"
-string str = "helllo \"world\", how things?" + 10 + "word" + "hello" # and " some more here
-
-def arrange(plans, lines, totalMinutes):
- """arrangements of plans taken lines times with an heuristic that the sum
- of values in one arrangement is less then totalMinutes
- """
- #if in cache we are done otherwise start calculating and save them to cache
- if (plans, lines, totalMinutes) in cache:
- return cache[(plans, lines, totalMinutes)]
- if lines==1:
- r = [[plan] for plan in plans]
- cache[(plans, lines, totalMinutes)] = r
- return r
- solutions = []
- for plan in plans:
- for ar in sort(list(arrange(plans, lines-1, totalMinutes))):
- try:
- one_solution = tuple(sort([plan] + list(ar)))
- if sum(one_solution) &lt;= totalMinutes and one_solution not in solutions:
- solutions.append(one_solution)
- except Exception, e:
- print "Error:", str(e)
- cache[(plans, lines, totalMinutes)] = solutions
- return solutions
-
-if __name__ == "__main__":
- import sys
- lines, totalMinutes = int(sys.argv[1]), int(sys.argv[2])
- plans = tuple([int(p) for p in sys.argv[3:]])
- print "for", lines, totalMinutes, plans
- for sol in arrange(plans, lines, totalMinutes):
- print sol
-</pre>
-<!-- InstanceEndEditable -->
-<hr/>
-Text body after.
-</div>
-</div>
-
-<div class="footer">
-Copyright 2004-2007 Alex Gorbatchev.<br/>
-</div>
-
-<script class="javascript" src="Scripts/shCore.js"></script>
-<script class="javascript" src="Scripts/shBrushCSharp.js"></script>
-<script class="javascript" src="Scripts/shBrushPhp.js"></script>
-<script class="javascript" src="Scripts/shBrushJScript.js"></script>
-<script class="javascript" src="Scripts/shBrushJava.js"></script>
-<script class="javascript" src="Scripts/shBrushVb.js"></script>
-<script class="javascript" src="Scripts/shBrushSql.js"></script>
-<script class="javascript" src="Scripts/shBrushXml.js"></script>
-<script class="javascript" src="Scripts/shBrushDelphi.js"></script>
-<script class="javascript" src="Scripts/shBrushPython.js"></script>
-<script class="javascript" src="Scripts/shBrushRuby.js"></script>
-<script class="javascript" src="Scripts/shBrushCss.js"></script>
-<script class="javascript" src="Scripts/shBrushCpp.js"></script>
-<script class="javascript">
-dp.SyntaxHighlighter.ClipboardSwf = 'Scripts/clipboard.swf';
-dp.SyntaxHighlighter.HighlightAll('code');
-</script>
-
-</body>
-<!-- InstanceEnd --></html>
View
131 dp.SyntaxHighlighter/Ruby.html
@@ -1,131 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Test.dwt" codeOutsideHTMLIsLocked="false" -->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>dp.SyntaxHighlighter Tests</title>
-<link type="text/css" rel="stylesheet" href="Styles/SyntaxHighlighter.css"></link>
-<link href="Styles/TestPages.css" rel="stylesheet" type="text/css">
-</head>
-
-<body>
-
-<h1>dp.SyntaxHighlighter 1.5.0 Tests and Samples</h1>
-<p><a href="http://code.google.com/p/syntaxhighlighter/">http://code.google.com/p/syntaxhighlighter/</a></p>
-
-<h2><!-- InstanceBeginEditable name="Title" -->Ruby<!-- InstanceEndEditable --></h2>
-
-<div class="layout">
-
-<div class="column1">
- <h3>Languages:</h3>
- <ol>
- <li><a href="CSharp.html">C#</a></li>
- <li><a href="CSS.html">CSS</a></li>
- <li><a href="Cpp.html">C++</a></li>
- <li><a href="Delphi.html">Delphi</a></li>
- <li><a href="Java.html">Java</a></li>
- <li><a href="JavaScript.html">JavaScript</a></li>
- <li><a href="PHP.html">PHP</a></li>
- <li><a href="Python.html">Python</a></li>
- <li><a href="Ruby.html">Ruby</a></li>
- <li><a href="SQL.html">SQL</a></li>
- <li><a href="VB.html">Visual Basic</a></li>
- <li><a href="XML.html">XML / HTML</a></li>
- </ol>
- <h3>Features:</h3>
- <ol>
- <li><a href="SmartTabs.html">Smart tabs</a></li>
- <li><a href="FirstLine.html">First line</a> </li>
- <li><a href="CollapseCode.html">Expand code</a></li>
- <li><a href="ShowColumns.html">Show columns</a></li>
- <li><a href="NoGutter.html">No gutter</a></li>
- <li><a href="NoControls.html">No controls</a></li>
- </ol>
-</div>
-
-<div class="column2">
-Text body before.
-<hr/>
-<!-- InstanceBeginEditable name="Code" -->
-<pre name="code" class="ruby">
-# {tagname} {tagfile} {tagaddress}[;" {tagfield}..]
-# "A tagfield has a name, a colon, and a value: "name:value".
-# The name of the "kind:" field can be omitted. A program reading the
-# tags file can recognize the "kind:" field by the missing ':'.
-
-class Parser
- @@parsers = []
-
- def get_type()
- return ""
- end
-
- def parse( xml )
- @var = nil
- return nil
- end
-
- def Parser.add_parser( :symlink )
- @@parsers.push( p )
- end
- def Parser.parsers()
- return @@parsers
- end
-end
-
-class RSSParser < Parser
- def get_type()
- return "RSS"
- end
-
- def parse( xml )
- # Parse the XML up and return some known format
- return nil
- end
-end
-
-Parser.add_parser( RSSParser )
-
-class RDFParser < Parser
- def get_type()
- return "RDF"
- end
-
- def parse( xml )
- # Parse the XML up and return some known format
- return nil
- end
-end
-
-Parser.add_parser( RDFParser )
-</pre>
-<!-- InstanceEndEditable -->
-<hr/>
-Text body after.
-</div>
-</div>
-
-<div class="footer">
-Copyright 2004-2007 Alex Gorbatchev.<br/>
-</div>
-
-<script class="javascript" src="Scripts/shCore.js"></script>
-<script class="javascript" src="Scripts/shBrushCSharp.js"></script>
-<script class="javascript" src="Scripts/shBrushPhp.js"></script>
-<script class="javascript" src="Scripts/shBrushJScript.js"></script>
-<script class="javascript" src="Scripts/shBrushJava.js"></script>
-<script class="javascript" src="Scripts/shBrushVb.js"></script>
-<script class="javascript" src="Scripts/shBrushSql.js"></script>
-<script class="javascript" src="Scripts/shBrushXml.js"></script>
-<script class="javascript" src="Scripts/shBrushDelphi.js"></script>
-<script class="javascript" src="Scripts/shBrushPython.js"></script>
-<script class="javascript" src="Scripts/shBrushRuby.js"></script>
-<script class="javascript" src="Scripts/shBrushCss.js"></script>
-<script class="javascript" src="Scripts/shBrushCpp.js"></script>
-<script class="javascript">
-dp.SyntaxHighlighter.ClipboardSwf = 'Scripts/clipboard.swf';
-dp.SyntaxHighlighter.HighlightAll('code');
-</script>
-
-</body>
-<!-- InstanceEnd --></html>
View
98 dp.SyntaxHighlighter/SQL.html
@@ -1,98 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Test.dwt" codeOutsideHTMLIsLocked="false" -->
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title>dp.SyntaxHighlighter Tests</title>
-<link type="text/css" rel="stylesheet" href="Styles/SyntaxHighlighter.css"></link>
-<link href="Styles/TestPages.css" rel="stylesheet" type="text/css">
-</head>
-
-<body>
-
-<h1>dp.SyntaxHighlighter 1.5.0 Tests and Samples</h1>
-<p><a href="http://code.google.com/p/syntaxhighlighter/">http://code.google.com/p/syntaxhighlighter/</a></p>
-
-<h2><!-- InstanceBeginEditable name="Title" -->SQL<!-- InstanceEndEditable --></h2>
-
-<div class="layout">
-
-<div class="column1">
- <h3>Languages:</h3>
- <ol>
- <li><a href="CSharp.html">C#</a></li>
- <li><a href="CSS.html">CSS</a></li>
- <li><a href="Cpp.html">C++</a></li>
- <li><a href="Delphi.html">Delphi</a></li>
- <li><a href="Java.html">Java</a></li>
- <li><a href="JavaScript.html">JavaScript</a></li>
- <li><a href="PHP.html">PHP</a></li>
- <li><a href="Python.html">Python</a></li>
- <li><a href="Ruby.html">Ruby</a></li>
- <li><a href="SQL.html">SQL</a></li>
- <li><a href="VB.html">Visual Basic</a></li>
- <li><a href="XML.html">XML / HTML</a></li>
- </ol>
- <h3>Features:</h3>
- <ol>
- <li><a href="SmartTabs.html">Smart tabs</a></li>
- <li><a href="FirstLine.html">First line</a> </li>
- <li><a href="CollapseCode.html">Expand code</a></li>