Permalink
Browse files

+ shjs code highlighting

  • Loading branch information...
1 parent 6d1c6a2 commit bd415fbd68fc796d56b5038ecc71ee6f552faf47 @kschiess committed Sep 4, 2009
Showing with 18,653 additions and 2 deletions.
  1. +7 −1 _layouts/default.haml
  2. +1 −1 _posts/2009-09-01-welcome_to_my_potential_reader.textile
  3. +25 −0 js/shjs-0.6/README.txt
  4. +1 −0 js/shjs-0.6/VERSION.txt
  5. +151 −0 js/shjs-0.6/css/sh_acid.css
  6. +1 −0 js/shjs-0.6/css/sh_acid.min.css
  7. +151 −0 js/shjs-0.6/css/sh_berries-dark.css
  8. +1 −0 js/shjs-0.6/css/sh_berries-dark.min.css
  9. +151 −0 js/shjs-0.6/css/sh_berries-light.css
  10. +1 −0 js/shjs-0.6/css/sh_berries-light.min.css
  11. +151 −0 js/shjs-0.6/css/sh_bipolar.css
  12. +1 −0 js/shjs-0.6/css/sh_bipolar.min.css
  13. +151 −0 js/shjs-0.6/css/sh_blacknblue.css
  14. +1 −0 js/shjs-0.6/css/sh_blacknblue.min.css
  15. +151 −0 js/shjs-0.6/css/sh_bright.css
  16. +1 −0 js/shjs-0.6/css/sh_bright.min.css
  17. +151 −0 js/shjs-0.6/css/sh_contrast.css
  18. +1 −0 js/shjs-0.6/css/sh_contrast.min.css
  19. +151 −0 js/shjs-0.6/css/sh_darkblue.css
  20. +1 −0 js/shjs-0.6/css/sh_darkblue.min.css
  21. +151 −0 js/shjs-0.6/css/sh_darkness.css
  22. +1 −0 js/shjs-0.6/css/sh_darkness.min.css
  23. +151 −0 js/shjs-0.6/css/sh_desert.css
  24. +1 −0 js/shjs-0.6/css/sh_desert.min.css
  25. +151 −0 js/shjs-0.6/css/sh_dull.css
  26. +1 −0 js/shjs-0.6/css/sh_dull.min.css
  27. +151 −0 js/shjs-0.6/css/sh_easter.css
  28. +1 −0 js/shjs-0.6/css/sh_easter.min.css
  29. +139 −0 js/shjs-0.6/css/sh_emacs.css
  30. +1 −0 js/shjs-0.6/css/sh_emacs.min.css
  31. +151 −0 js/shjs-0.6/css/sh_golden.css
  32. +1 −0 js/shjs-0.6/css/sh_golden.min.css
  33. +151 −0 js/shjs-0.6/css/sh_greenlcd.css
  34. +1 −0 js/shjs-0.6/css/sh_greenlcd.min.css
  35. +139 −0 js/shjs-0.6/css/sh_ide-anjuta.css
  36. +1 −0 js/shjs-0.6/css/sh_ide-anjuta.min.css
  37. +139 −0 js/shjs-0.6/css/sh_ide-codewarrior.css
  38. +1 −0 js/shjs-0.6/css/sh_ide-codewarrior.min.css
  39. +139 −0 js/shjs-0.6/css/sh_ide-devcpp.css
  40. +1 −0 js/shjs-0.6/css/sh_ide-devcpp.min.css
  41. +139 −0 js/shjs-0.6/css/sh_ide-eclipse.css
  42. +1 −0 js/shjs-0.6/css/sh_ide-eclipse.min.css
  43. +139 −0 js/shjs-0.6/css/sh_ide-kdev.css
  44. +1 −0 js/shjs-0.6/css/sh_ide-kdev.min.css
  45. +139 −0 js/shjs-0.6/css/sh_ide-msvcpp.css
  46. +1 −0 js/shjs-0.6/css/sh_ide-msvcpp.min.css
  47. +139 −0 js/shjs-0.6/css/sh_kwrite.css
  48. +1 −0 js/shjs-0.6/css/sh_kwrite.min.css
  49. +127 −0 js/shjs-0.6/css/sh_matlab.css
  50. +1 −0 js/shjs-0.6/css/sh_matlab.min.css
  51. +151 −0 js/shjs-0.6/css/sh_navy.css
  52. +1 −0 js/shjs-0.6/css/sh_navy.min.css
  53. +151 −0 js/shjs-0.6/css/sh_nedit.css
  54. +1 −0 js/shjs-0.6/css/sh_nedit.min.css
  55. +151 −0 js/shjs-0.6/css/sh_neon.css
  56. +1 −0 js/shjs-0.6/css/sh_neon.min.css
  57. +151 −0 js/shjs-0.6/css/sh_night.css
  58. +1 −0 js/shjs-0.6/css/sh_night.min.css
  59. +151 −0 js/shjs-0.6/css/sh_pablo.css
  60. +1 −0 js/shjs-0.6/css/sh_pablo.min.css
  61. +139 −0 js/shjs-0.6/css/sh_peachpuff.css
  62. +1 −0 js/shjs-0.6/css/sh_peachpuff.min.css
  63. +145 −0 js/shjs-0.6/css/sh_print.css
  64. +1 −0 js/shjs-0.6/css/sh_print.min.css
  65. +151 −0 js/shjs-0.6/css/sh_rand01.css
  66. +1 −0 js/shjs-0.6/css/sh_rand01.min.css
  67. +139 −0 js/shjs-0.6/css/sh_the.css
  68. +1 −0 js/shjs-0.6/css/sh_the.min.css
  69. +151 −0 js/shjs-0.6/css/sh_typical.css
  70. +1 −0 js/shjs-0.6/css/sh_typical.min.css
  71. +151 −0 js/shjs-0.6/css/sh_vampire.css
  72. +1 −0 js/shjs-0.6/css/sh_vampire.min.css
  73. +139 −0 js/shjs-0.6/css/sh_vim-dark.css
  74. +1 −0 js/shjs-0.6/css/sh_vim-dark.min.css
  75. +139 −0 js/shjs-0.6/css/sh_vim.css
  76. +1 −0 js/shjs-0.6/css/sh_vim.min.css
  77. +151 −0 js/shjs-0.6/css/sh_whatis.css
  78. +1 −0 js/shjs-0.6/css/sh_whatis.min.css
  79. +139 −0 js/shjs-0.6/css/sh_whitengrey.css
  80. +1 −0 js/shjs-0.6/css/sh_whitengrey.min.css
  81. +139 −0 js/shjs-0.6/css/sh_zellner.css
  82. +1 −0 js/shjs-0.6/css/sh_zellner.min.css
  83. BIN js/shjs-0.6/doc/ajax-loader.gif
  84. +57 −0 js/shjs-0.6/doc/browsers.html
  85. +425 −0 js/shjs-0.6/doc/documentation.html
  86. +68 −0 js/shjs-0.6/doc/download.html
  87. BIN js/shjs-0.6/doc/gplv3-88x31.png
  88. +716 −0 js/shjs-0.6/doc/gplv3.html
  89. +378 −0 js/shjs-0.6/doc/license.html
  90. +118 −0 js/shjs-0.6/doc/links.html
  91. +180 −0 js/shjs-0.6/doc/news.html
  92. +167 −0 js/shjs-0.6/doc/style.css
  93. +125 −0 js/shjs-0.6/doc/style.js
  94. BIN js/shjs-0.6/favicon.ico
  95. +674 −0 js/shjs-0.6/gpl.txt
  96. +186 −0 js/shjs-0.6/index.html
  97. +787 −0 js/shjs-0.6/lang/sh_bison.js
  98. +1 −0 js/shjs-0.6/lang/sh_bison.min.js
  99. +409 −0 js/shjs-0.6/lang/sh_c.js
  100. +1 −0 js/shjs-0.6/lang/sh_c.min.js
  101. +76 −0 js/shjs-0.6/lang/sh_caml.js
  102. +1 −0 js/shjs-0.6/lang/sh_caml.min.js
  103. +40 −0 js/shjs-0.6/lang/sh_changelog.js
  104. +1 −0 js/shjs-0.6/lang/sh_changelog.min.js
  105. +419 −0 js/shjs-0.6/lang/sh_cpp.js
  106. +1 −0 js/shjs-0.6/lang/sh_cpp.min.js
  107. +424 −0 js/shjs-0.6/lang/sh_csharp.js
  108. +1 −0 js/shjs-0.6/lang/sh_csharp.min.js
  109. +316 −0 js/shjs-0.6/lang/sh_css.js
  110. +1 −0 js/shjs-0.6/lang/sh_css.min.js
  111. +29 −0 js/shjs-0.6/lang/sh_desktop.js
  112. +1 −0 js/shjs-0.6/lang/sh_desktop.min.js
  113. +122 −0 js/shjs-0.6/lang/sh_diff.js
  114. +1 −0 js/shjs-0.6/lang/sh_diff.min.js
  115. +787 −0 js/shjs-0.6/lang/sh_flex.js
  116. +1 −0 js/shjs-0.6/lang/sh_flex.min.js
  117. +409 −0 js/shjs-0.6/lang/sh_glsl.js
  118. +1 −0 js/shjs-0.6/lang/sh_glsl.min.js
  119. +337 −0 js/shjs-0.6/lang/sh_haxe.js
  120. +1 −0 js/shjs-0.6/lang/sh_haxe.min.js
  121. +126 −0 js/shjs-0.6/lang/sh_html.js
  122. +1 −0 js/shjs-0.6/lang/sh_html.min.js
  123. +337 −0 js/shjs-0.6/lang/sh_java.js
  124. +1 −0 js/shjs-0.6/lang/sh_java.min.js
  125. +347 −0 js/shjs-0.6/lang/sh_javascript.js
  126. +1 −0 js/shjs-0.6/lang/sh_javascript.min.js
  127. +357 −0 js/shjs-0.6/lang/sh_javascript_dom.js
  128. +1 −0 js/shjs-0.6/lang/sh_javascript_dom.min.js
  129. +364 −0 js/shjs-0.6/lang/sh_latex.js
  130. +1 −0 js/shjs-0.6/lang/sh_latex.min.js
  131. +29 −0 js/shjs-0.6/lang/sh_ldap.js
  132. +1 −0 js/shjs-0.6/lang/sh_ldap.min.js
  133. +231 −0 js/shjs-0.6/lang/sh_log.js
  134. +1 −0 js/shjs-0.6/lang/sh_log.min.js
  135. +22 −0 js/shjs-0.6/lang/sh_lsm.js
  136. +1 −0 js/shjs-0.6/lang/sh_lsm.min.js
  137. +198 −0 js/shjs-0.6/lang/sh_m4.js
  138. +1 −0 js/shjs-0.6/lang/sh_m4.min.js
  139. +118 −0 js/shjs-0.6/lang/sh_makefile.js
  140. +1 −0 js/shjs-0.6/lang/sh_makefile.min.js
  141. +339 −0 js/shjs-0.6/lang/sh_oracle.js
  142. +1 −0 js/shjs-0.6/lang/sh_oracle.min.js
  143. +110 −0 js/shjs-0.6/lang/sh_pascal.js
  144. +1 −0 js/shjs-0.6/lang/sh_pascal.min.js
  145. +419 −0 js/shjs-0.6/lang/sh_perl.js
  146. +1 −0 js/shjs-0.6/lang/sh_perl.min.js
  147. +325 −0 js/shjs-0.6/lang/sh_php.js
  148. +1 −0 js/shjs-0.6/lang/sh_php.min.js
  149. +120 −0 js/shjs-0.6/lang/sh_prolog.js
  150. +1 −0 js/shjs-0.6/lang/sh_prolog.min.js
  151. +29 −0 js/shjs-0.6/lang/sh_properties.js
  152. +1 −0 js/shjs-0.6/lang/sh_properties.min.js
  153. +141 −0 js/shjs-0.6/lang/sh_python.js
  154. +1 −0 js/shjs-0.6/lang/sh_python.min.js
  155. +142 −0 js/shjs-0.6/lang/sh_ruby.js
  156. +1 −0 js/shjs-0.6/lang/sh_ruby.min.js
  157. +332 −0 js/shjs-0.6/lang/sh_scala.js
  158. +1 −0 js/shjs-0.6/lang/sh_scala.min.js
  159. +93 −0 js/shjs-0.6/lang/sh_sh.js
  160. +1 −0 js/shjs-0.6/lang/sh_sh.min.js
  161. +93 −0 js/shjs-0.6/lang/sh_slang.js
  162. +1 −0 js/shjs-0.6/lang/sh_slang.min.js
  163. +76 −0 js/shjs-0.6/lang/sh_sml.js
  164. +1 −0 js/shjs-0.6/lang/sh_sml.min.js
  165. +44 −0 js/shjs-0.6/lang/sh_spec.js
  166. +1 −0 js/shjs-0.6/lang/sh_spec.min.js
  167. +339 −0 js/shjs-0.6/lang/sh_sql.js
  168. +1 −0 js/shjs-0.6/lang/sh_sql.min.js
  169. +78 −0 js/shjs-0.6/lang/sh_tcl.js
  170. +1 −0 js/shjs-0.6/lang/sh_tcl.min.js
  171. +115 −0 js/shjs-0.6/lang/sh_xml.js
  172. +1 −0 js/shjs-0.6/lang/sh_xml.min.js
  173. +68 −0 js/shjs-0.6/lang/sh_xorg.js
  174. +1 −0 js/shjs-0.6/lang/sh_xorg.min.js
  175. +538 −0 js/shjs-0.6/sh_main.js
  176. +4 −0 js/shjs-0.6/sh_main.min.js
  177. +66 −0 js/shjs-0.6/sh_style.css
  178. +1 −0 js/shjs-0.6/sh_style.min.css
View
@@ -4,10 +4,16 @@
%head
%meta{ 'http-equiv' => "Content-type", :content => "text/html;charset=UTF-8" }
%title= h page.title
+
+ -# SHJS code block formatting
+ %script{ :type => 'text/javascript', :src => '/js/shjs-0.6/sh_main.min.js' }
+ %link{ :type => 'text/css', :rel => 'stylesheet', :href => '/js/shjs-0.6/sh_style.min.css' }
+
%link{ :type => 'text/css', :rel => 'stylesheet', :href => '/css/site.css' }
+
-# %script{ :type => 'text/javascript', :src => 'http://getfirebug.com/releases/lite/1.2/firebug-lite.js' }
-# %script{ :type => 'text/javascript', :src => 'javascripts/jquery-1.3.2.js' }
- %body
+ %body{:onload => 'sh_highlightDocument("/js/shjs-0.6/lang/", ".min.js")'}
.tagline
press play on tape
@@ -43,7 +43,7 @@ Wohlan denn, Herz, nimm Abschied und gesunde!
And because this is really going to be a blog about programming, here's a
code snippet:
-<pre><code>
+<pre class="sh_ruby"><code>
# This is totally unrelated to anything, but better than foo and bar.
# Voila. I give you: The identity line filter.
class LineFilter
View
@@ -0,0 +1,25 @@
+This is the README file for SHJS - Syntax Highlighting in JavaScript.
+
+This distribution contains the following files:
+
+sh_main.js
+ The main script.
+sh_main.min.js
+ The main script, compressed by YUI Compressor
+ (http://www.julienlecomte.net/yuicompressor/).
+sh_style.css
+ Default style sheet.
+css/*.css
+ Style sheets for different highlighting themes.
+css/*.min.css
+ Compressed versions of the above.
+lang/*.js
+ Scripts for different programming languages.
+lang/*.min.js
+ Compressed versions of the above.
+doc/
+ Documentation.
+
+See index.html for instructions.
+
+See gpl.txt for licensing terms.
View
@@ -0,0 +1 @@
+0.6
View
@@ -0,0 +1,151 @@
+pre.sh_sourceCode {
+ background-color: #eeeeee;
+ color: #000000;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_keyword {
+ color: #bb7977;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_type {
+ color: #8080c0;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_string {
+ color: #a68500;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_regexp {
+ color: #a68500;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_specialchar {
+ color: #ff00ff;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_comment {
+ color: #ff8000;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_number {
+ color: #800080;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_preproc {
+ color: #0080c0;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_symbol {
+ color: #ff0080;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_function {
+ color: #004466;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_cbracket {
+ color: #ff0080;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_url {
+ color: #a68500;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_date {
+ color: #bb7977;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_time {
+ color: #bb7977;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_file {
+ color: #bb7977;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_ip {
+ color: #a68500;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_name {
+ color: #a68500;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_variable {
+ color: #0080c0;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_oldfile {
+ color: #ff00ff;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_newfile {
+ color: #a68500;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_difflines {
+ color: #bb7977;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_selector {
+ color: #0080c0;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_property {
+ color: #bb7977;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_value {
+ color: #a68500;
+ font-weight: normal;
+ font-style: normal;
+}
+

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,151 @@
+pre.sh_sourceCode {
+ background-color: #80bfff;
+ color: #400080;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_keyword {
+ color: #3f2bf0;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_type {
+ color: #3f2bf0;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_string {
+ color: #c40000;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_regexp {
+ color: #c40000;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_specialchar {
+ color: #77379a;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_comment {
+ color: #df0959;
+ font-weight: normal;
+ font-style: italic;
+}
+
+pre.sh_sourceCode .sh_number {
+ color: #20755a;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_preproc {
+ color: #0628cb;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_symbol {
+ color: #000000;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_function {
+ color: #901164;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_cbracket {
+ color: #000000;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_url {
+ color: #c40000;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_date {
+ color: #3f2bf0;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_time {
+ color: #3f2bf0;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_file {
+ color: #3f2bf0;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_ip {
+ color: #c40000;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_name {
+ color: #c40000;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_variable {
+ color: #a91ea7;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_oldfile {
+ color: #77379a;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_newfile {
+ color: #c40000;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_difflines {
+ color: #3f2bf0;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_selector {
+ color: #a91ea7;
+ font-weight: normal;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_property {
+ color: #3f2bf0;
+ font-weight: bold;
+ font-style: normal;
+}
+
+pre.sh_sourceCode .sh_value {
+ color: #c40000;
+ font-weight: normal;
+ font-style: normal;
+}
+

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit bd415fb

Please sign in to comment.