1616 onerror ="alert('Error: failed to load ' + this.src) "> </ script >
1717< script src ="../src/lang-sql.js " type ="text/javascript "
1818 onerror ="alert('Error: failed to load ' + this.src) "> </ script >
19+ < script src ="../src/lang-wiki.js " type ="text/javascript "
20+ onerror ="alert('Error: failed to load ' + this.src) "> </ script >
1921< script src ="../src/lang-vb.js " type ="text/javascript "
2022 onerror ="alert('Error: failed to load ' + this.src) "> </ script >
2123< script type ="text/javascript ">
@@ -803,46 +805,6 @@ <h1>Bug 24 - LUA Syntax Highlighting</h1>
803805 return shellsort
804806end</ pre >
805807
806- < h1 > Bug 42 - Lisp Syntax Highlighting</ h1 >
807- < pre class ="prettyprint lang-el " id ="issue42 "
808- > ; -*- mode: lisp -*-
809-
810- (defun back-six-lines () (interactive) (forward-line -6))
811- (defun forward-six-lines () (interactive) (forward-line 6))
812-
813- (global-set-key "\M-l" 'goto-line)
814- (global-set-key "\C-z" 'advertised-undo)
815- (global-set-key [C-insert] 'clipboard-kill-ring-save)
816- (global-set-key [S-insert] 'clipboard-yank)
817- (global-set-key [C-up] 'back-six-lines)
818- (global-set-key [C-down] 'forward-six-lines)
819-
820- (setq visible-bell t)
821- (setq user-mail-address "
[email protected] ")
822- (setq default-major-mode 'text-mode)
823-
824- (setenv "TERM" "emacs")
825- (c-set-offset 'case-label 2)
826- (setq c-basic-offset 2)
827- (setq perl-indent-level 2)
828- (setq delete-key-deletes-forward t)
829- (setq indent-tabs-mode nil)
830-
831- ;; Text mode
832- (add-hook 'text-mode-hook
833- '(lambda ()
834- (turn-on-auto-fill)
835- )
836- )
837-
838- ;; Fundamental mode
839- (add-hook 'fundamental-mode-hook
840- '(lambda ()
841- (turn-on-auto-fill)
842- )
843- )
844- </ pre >
845-
846808< h1 > Bug 27 - VBScript w/ language specified</ h1 >
847809< pre class ="prettyprint lang-vb " id ="issue27 ">
848810Imports System
@@ -911,7 +873,7 @@ <h1>Bug 30 - Haskell w/ language specified</h1>
911873 Nil :: Foo a b c
912874 Cons :: a b c -> Foo abc -> Foo a b c
913875
914- str = " Foo\\Bar"
876+ str = " Foo\\Bar"
915877char = 'x'
916878Not.A.Char = 'too long' -- Don't barf. Show that 't is a lexical error.
917879
@@ -940,6 +902,46 @@ <h1>Bug 33 - OCaml and F#</h1>
940902</ pre >
941903< p > Still TODO: handle nested < code > (* (* comments *) *)</ code > properly.</ p >
942904
905+ < h1 > Bug 42 - Lisp Syntax Highlighting</ h1 >
906+ < pre class ="prettyprint lang-el " id ="issue42 "
907+ > ; -*- mode: lisp -*-
908+
909+ (defun back-six-lines () (interactive) (forward-line -6))
910+ (defun forward-six-lines () (interactive) (forward-line 6))
911+
912+ (global-set-key "\M-l" 'goto-line)
913+ (global-set-key "\C-z" 'advertised-undo)
914+ (global-set-key [C-insert] 'clipboard-kill-ring-save)
915+ (global-set-key [S-insert] 'clipboard-yank)
916+ (global-set-key [C-up] 'back-six-lines)
917+ (global-set-key [C-down] 'forward-six-lines)
918+
919+ (setq visible-bell t)
920+ (setq user-mail-address "
[email protected] ")
921+ (setq default-major-mode 'text-mode)
922+
923+ (setenv "TERM" "emacs")
924+ (c-set-offset 'case-label 2)
925+ (setq c-basic-offset 2)
926+ (setq perl-indent-level 2)
927+ (setq delete-key-deletes-forward t)
928+ (setq indent-tabs-mode nil)
929+
930+ ;; Text mode
931+ (add-hook 'text-mode-hook
932+ '(lambda ()
933+ (turn-on-auto-fill)
934+ )
935+ )
936+
937+ ;; Fundamental mode
938+ (add-hook 'fundamental-mode-hook
939+ '(lambda ()
940+ (turn-on-auto-fill)
941+ )
942+ )
943+ </ pre >
944+
943945< h1 > Bug 45 - Square brackets in strings</ h1 >
944946< pre class ="prettyprint " id ="issue45 ">
945947throw new RuntimeException("Element [" + element.getName() +
@@ -965,6 +967,32 @@ <h1>Protocol Buffers</h1>
965967 optional Corpus corpus = 4 [default = UNIVERSAL];
966968}</ pre >
967969
970+ < h1 > Wiki syntax w/ language specified</ h1 >
971+ < pre class ="prettyprint lang-wiki " id ="wiki ">
972+ #summary hello world
973+ #labels HelloWorld WikiWord Hiya
974+
975+ [http://www.google.com/?q=WikiSyntax+site:code.google.com WikiSyntax]
976+
977+ Lorem Ipsum `while (1) print("blah blah");`
978+
979+ * Bullet
980+ * Points
981+ * NestedBullet
982+
983+ ==DroningOnAndOn==
984+ {{{
985+ // Some EmbeddedSourceCode
986+ void main() {
987+ Print('hello world');
988+ }
989+ }}}
990+
991+ {{{
992+ <!-- Embedded XML -->
993+ <foo bar="baz"><boo /><foo>
994+ }}}
995+ </ pre >
968996</ body >
969997
970998< script type ="text/javascript ">
@@ -2244,7 +2272,42 @@ <h1>Protocol Buffers</h1>
22442272 ' `END`KWDoptional`END`PLN `END`TYPCorpus`END`PLN corpus `END' +
22452273 '`PUN=`END`PLN `END`LIT4`END`PLN `END`PUN[`END`KWDdefault`END' +
22462274 '`PLN `END`PUN=`END`PLN UNIVERSAL`END`PUN];`END`PLN<br>' +
2247- '`END`PUN}`END' )
2275+ '`END`PUN}`END' ) ,
2276+ wiki : (
2277+ '`KWD#summary`END`PLN hello world<br>' +
2278+ '`END`KWD#labels`END`PLN `END`LITHelloWorld`END`PLN `END' +
2279+ '`LITWikiWord`END`PLN Hiya<br>' +
2280+ '<br>' +
2281+ '`END`PUN[`END' +
2282+ '`STRhttp://www.google.com/?q=WikiSyntax+site:code.google.com`END' +
2283+ '`PLN `END`LITWikiSyntax`END`PUN]`END`PLN<br>' +
2284+ '<br>' +
2285+ 'Lorem Ipsum `END`SRC``END`KWDwhile`END`PLN `END`PUN(`END`LIT1`END' +
2286+ '`PUN)`END`PLN `END`KWDprint`END`PUN(`END`STR"blah blah"`END' +
2287+ '`PUN);`END`SRC``END`PLN<br>' +
2288+ '<br>' +
2289+ ' `END`PUN*`END`PLN Bullet<br>' +
2290+ ' `END`PUN*`END`PLN Points<br>' +
2291+ ' `END`PUN*`END`PLN `END`LITNestedBullet`END' +
2292+ '`PLN<br>' +
2293+ '<br>' +
2294+ '`END`PUN==`END`LITDroningOnAndOn`END`PUN==`END`PLN<br>' +
2295+ '`END`SRC{{{`END`PLN<br>' +
2296+ ' `END`COM// Some EmbeddedSourceCode`END`PLN<br>' +
2297+ ' `END`KWDvoid`END`PLN main`END`PUN()`END`PLN `END`PUN{`END' +
2298+ '`PLN<br>' +
2299+ ' `END`TYPPrint`END`PUN(`END`STR\'hello world\'`END' +
2300+ '`PUN);`END`PLN<br>' +
2301+ ' `END`PUN}`END`PLN<br>' +
2302+ '`END`SRC}}}`END`PLN<br>' +
2303+ '<br>' +
2304+ '`END`SRC{{{`END`PLN<br>' +
2305+ ' `END`COM<!-- Embedded XML -->`END`PLN<br>' +
2306+ ' `END`PUN<`END`TAGfoo`END`PLN `END`ATNbar`END`PUN=`END' +
2307+ '`ATV"baz"`END`PUN><`END`TAGboo`END`PLN `END' +
2308+ '`PUN/><`END`TAGfoo`END`PUN>`END`PLN<br>' +
2309+ '`END`SRC}}}`END'
2310+ )
22482311} ;
22492312
22502313
0 commit comments