diff --git a/mediawiki-workshop.html b/mediawiki-workshop.html index 0be5000..1531035 100644 --- a/mediawiki-workshop.html +++ b/mediawiki-workshop.html @@ -295,21 +295,21 @@ Licensed under a #!/usr/bin/env ruby -require 'mediawikibot' +#!/usr/bin/env ruby +require 'mediawikibot' -if ARGV.size() != 2 - $stderr.print($0 + " <wiki-user> <wiki-password>\n") - exit(1) -end +if ARGV.size() != 2 + $stderr.print($0 + " <wiki-user> <wiki-password>\n") + exit(1) +end -b = MediaWikiBot::WikiBot.new("http://entropia.de/wiki/") -b.login(ARGV[0], ARGV[1]) +b = MediaWikiBot::WikiBot.new("http://entropia.de/wiki/") +b.login(ARGV[0], ARGV[1]) -old = b.get_raw("RoboRally") -new = old.gsub(/\[#reg ([^|]*?)\]/i, - '[[#Gesperrte Register|\1]]') -b.edit("RoboRally", new, "Kaputte interne Links repariert") +old = b.get_raw("RoboRally") +new = old.gsub(/\[#reg ([^|]*?)\]/i, + '[[#Gesperrte Register|\1]]') +b.edit("RoboRally", new, "Kaputte interne Links repariert") diff --git a/ui/neingeist/pretty.css b/ui/neingeist/pretty.css index 13f6495..7108d0c 100644 --- a/ui/neingeist/pretty.css +++ b/ui/neingeist/pretty.css @@ -106,6 +106,13 @@ html>body .external {border-bottom: none;} img.incremental {visibility: hidden;} .slide .current {color: #B02;} +.vim-quote { color: #6b59ce; } +.vim-statement { color: #a52829; } +.vim-constant { color: #ff00ff; } +.vim-control { color: #a520f7; } +.vim-var { color: #008a8c; } + +img { border: 0; } /* diagnostics diff --git a/vim-tohtml-fix b/vim-tohtml-fix new file mode 100755 index 0000000..8acc8b4 --- /dev/null +++ b/vim-tohtml-fix @@ -0,0 +1,8 @@ +#!/bin/sh +f=$1 + +perl -pi -e 's!(.*?)!\1!g' $f +perl -pi -e 's!(.*?)!\1!g' $f +perl -pi -e 's!(.*?)!\1!g' $f +perl -pi -e 's!(.*?)!\1!g' $f +perl -pi -e 's!(.*?)!\1!g' $f