Permalink
Browse files

Strip trailing whitespace from examples.

  • Loading branch information...
1 parent a48641b commit d61a535b8e5e6e19a49fafd443bbc1e04031e6bb @nuclearsandwich nuclearsandwich committed Oct 24, 2012
Showing with 189 additions and 189 deletions.
  1. +3 −3 examples/appengine/Readme
  2. +1 −1 examples/appengine/src/org/mirah/MirahApp.mirah
  3. +1 −1 examples/appengine/src/org/mirah/list.dhtml
  4. +1 −1 examples/bintrees.mirah
  5. +1 −1 examples/edb.mirah
  6. +1 −1 examples/interfaces.mirah
  7. +2 −2 examples/macros/string-each-char.mirah
  8. +1 −1 examples/maven/README.txt
  9. +1 −1 examples/maven/src/main/mirah/hello_mirah.mirah
  10. +1 −1 examples/plugins/appengine/Rakefile
  11. +1 −1 examples/plugins/appengine/src/com/google/appengine/ext/duby/db/MetaModel.mirah
  12. +1 −1 examples/plugins/appengine/src/com/google/appengine/ext/duby/db/Model.duby
  13. +1 −1 examples/plugins/appengine/test/com/google/appengine/ext/duby/db/ModelTest.duby
  14. +6 −6 examples/rosettacode/100-doors.mirah
  15. +3 −3 examples/rosettacode/README.txt
  16. +1 −1 examples/rosettacode/boolean-values.mirah
  17. +1 −1 examples/rosettacode/comments.mirah
  18. +1 −1 examples/rosettacode/count-occurrences-of-a-substring.mirah
  19. +1 −1 examples/rosettacode/factorial.mirah
  20. +1 −1 examples/rosettacode/fibonacci.mirah
  21. +2 −2 examples/rosettacode/fizz-buzz.mirah
  22. +4 −4 examples/rosettacode/flatten-a-list.mirah
  23. +2 −2 examples/rosettacode/guess-the-number.mirah
  24. +4 −4 examples/rosettacode/hamming-numbers.mirah
  25. +22 −22 examples/rosettacode/is-string-numeric.mirah
  26. +2 −2 examples/rosettacode/palindrome.mirah
  27. +1 −1 examples/rosettacode/random-numbers.mirah
  28. +1 −1 examples/rosettacode/repeat-a-string.mirah
  29. +1 −1 examples/rosettacode/reverse-a-string.mirah
  30. +5 −5 examples/rosettacode/rot-13.mirah
  31. +2 −2 examples/rosettacode/secure-temporary-file.mirah
  32. +1 −1 examples/rosettacode/sleep.mirah
  33. +5 −5 examples/rosettacode/string-length.mirah
  34. +1 −1 examples/swing.mirah
  35. +1 −1 examples/test.edb
  36. +1 −1 examples/wiki/src/org/mirah/wiki/MirahWiki.duby
  37. +2 −2 examples/wiki/src/org/mirah/wiki/edit.eduby.html
  38. +1 −1 examples/wiki/src/org/mirah/wiki/error.eduby.html
  39. +30 −30 examples/wiki/src/org/mirah/wiki/layout.eduby.html
  40. +1 −1 examples/wiki/src/org/mirah/wiki/parser.eduby.html
  41. +1 −1 examples/wiki/war/app.yaml
  42. +1 −1 examples/wiki/war/public/javascripts/prettify.js
  43. +1 −1 examples/wiki/war/public/stylesheets/main.css
  44. +1 −1 examples/wiki/war/public/stylesheets/prettify.css
  45. +66 −66 examples/wiki/war/public/stylesheets/sh_style.css
View
6 examples/appengine/Readme
@@ -12,10 +12,10 @@ Datastore API:
Model.all -> Query
property foo, String # or any supported datastore type
# For numbers use Long or Double
-
+
instance.save
instance.key
-
+
instance.foo
instance.foo=
@@ -26,4 +26,4 @@ Datastore API:
Query.sort(property_name, true) # descending
Query.foo('foo').bar(3) # Only return instances where foo = 'foo' and bar = 3
Query.offset(10)
- Query.limit(5)
+ Query.limit(5)
View
2 examples/appengine/src/org/mirah/MirahApp.mirah
@@ -69,4 +69,4 @@ class MirahApp < HttpServlet
return "" unless o
h(o.toString)
end
-end
+end
View
2 examples/appengine/src/org/mirah/list.dhtml
@@ -12,4 +12,4 @@
Content: <textarea name=content></textarea><br>
<input type=submit>
</form>
-</body>
+</body>
View
2 examples/bintrees.mirah
@@ -37,7 +37,7 @@ class BinaryTrees
check += TreeNode.bottomUpTree(-i,depth).itemCheck
i += 1
end
-
+
puts "#{iterations * 2}\t trees of depth #{depth}\t check: #{check}"
depth += 2
end
View
2 examples/edb.mirah
@@ -15,4 +15,4 @@
def_edb :render, 'test.edb'
@message = "Hello"
-puts render
+puts render
View
2 examples/interfaces.mirah
@@ -30,4 +30,4 @@ end
list = ['foo', 'bar', 'baz']
p = Printer(MyPrinter.new)
-p.printAll(list)
+p.printAll(list)
View
4 examples/macros/string-each-char.mirah
@@ -16,10 +16,10 @@
macro def eachChar(value, &block)
- quote {
+ quote {
`value`.toCharArray.each do | my_char |
`block.body`
- end
+ end
}
end
View
2 examples/maven/README.txt
@@ -1,2 +1,2 @@
This is a sample project that uses the Mirah plugin for Maven to
-build and compile source.
+build and compile source.
View
2 examples/maven/src/main/mirah/hello_mirah.mirah
@@ -6,4 +6,4 @@ class HelloMirah
puts "Hello, Mirah!"
end
end
-end
+end
View
2 examples/plugins/appengine/Rakefile
@@ -69,4 +69,4 @@ task :test => :compile_test do
formatter :type => 'plain', :usefile => 'false'
end
end
-end
+end
View
2 examples/plugins/appengine/src/com/google/appengine/ext/duby/db/MetaModel.mirah
@@ -382,4 +382,4 @@ class ModelState
ast << mdef
@save = Body(mdef.child_nodes.get(2))
end
-end
+end
View
2 examples/plugins/appengine/src/com/google/appengine/ext/duby/db/Model.duby
@@ -391,4 +391,4 @@ class Model
def _read_from(e:Entity):void
end
-end
+end
View
2 examples/plugins/appengine/test/com/google/appengine/ext/duby/db/ModelTest.duby
@@ -125,4 +125,4 @@ class ModelTest
assertEquals(e.key, e2.key)
end
# TODO more tests.
-end
+end
View
12 examples/rosettacode/100-doors.mirah
@@ -22,28 +22,28 @@ class Door
def initialize
@state=false
end
-
+
def closed?; !@state; end
def open?; @state; end
def close; @state=false; end
def open; @state=true; end
-
+
def toggle
if closed?
open
else
close
end
end
-
+
def toString; Boolean.toString(@state); end
end
-
+
doors=ArrayList.new
1.upto(100) do
doors.add(Door.new)
-end
+end
1.upto(100) do |multiplier|
index = 0
@@ -54,7 +54,7 @@ end
end
i = 0
-doors.each do |door|
+doors.each do |door|
puts "Door #{i+1} is #{door}."
i+=1
end
View
6 examples/rosettacode/README.txt
@@ -1,9 +1,9 @@
This example set is all the code for Mirah from the Rosetta Code wiki
-(http://rosettacode.org/.
+(http://rosettacode.org/.
-This code is the canonical source for the wiki. Please add as many more
+This code is the canonical source for the wiki. Please add as many more
samples as you'd like. Either add the sample here and send a pull request
to the project owners, or add a sample to the Rosetta Code wiki and send
a message to the project owners. Either way, we'd like to try and keep
-the wiki page and this repository synchronized.
+the wiki page and this repository synchronized.
View
2 examples/rosettacode/boolean-values.mirah
@@ -16,7 +16,7 @@
import java.util.ArrayList
import java.util.HashMap
-# booleans
+# booleans
puts 'true is true' if true
puts 'false is false' if (!false)
View
2 examples/rosettacode/comments.mirah
@@ -18,4 +18,4 @@ puts 'code' # I am a comment
/*
Here is a multi-
line comment.
-*/
+*/
View
2 examples/rosettacode/count-occurrences-of-a-substring.mirah
@@ -21,7 +21,7 @@ import java.util.regex.Matcher
def count_substring(pattern:string, source:string)
(source.length() - source.replace(pattern, "").length()) / pattern.length()
end
-
+
puts count_substring("th", "the three truths") # ==> 3
puts count_substring("abab", "ababababab") # ==> 2
puts count_substring("a*b", "abaabba*bbaba*bbab") # ==> 2
View
2 examples/rosettacode/factorial.mirah
@@ -15,7 +15,7 @@
def factorial_iterative(n:int)
2.upto(n-1) do |i|
- n *= i
+ n *= i
end
n
end
View
2 examples/rosettacode/fibonacci.mirah
@@ -18,7 +18,7 @@ def fibonacci(n:int)
return n if n < 2
fibPrev = 1
fib = 1
- 3.upto(Math.abs(n)) do
+ 3.upto(Math.abs(n)) do
oldFib = fib
fib = fib + fibPrev
fibPrev = oldFib
View
4 examples/rosettacode/fizz-buzz.mirah
@@ -16,12 +16,12 @@
1.upto(100) do |n|
print "Fizz" if a = ((n % 3) == 0)
- print "Buzz" if b = ((n % 5) == 0)
+ print "Buzz" if b = ((n % 5) == 0)
print n unless (a || b)
print "\n"
end
-# a little more straight forward
+# a little more straight forward
1.upto(100) do |n|
if (n % 15) == 0
puts "FizzBuzz"
View
8 examples/rosettacode/flatten-a-list.mirah
@@ -17,18 +17,18 @@ import java.util.ArrayList
import java.util.List
import java.util.Collection
-def flatten(list: Collection)
+def flatten(list: Collection)
flatten(list, ArrayList.new)
end
def flatten(source: Collection, result: List)
source.each do |x|
- if (Collection.class.isAssignableFrom(x.getClass()))
- flatten(Collection(x), result)
+ if (Collection.class.isAssignableFrom(x.getClass()))
+ flatten(Collection(x), result)
else
result.add(x)
result # if branches must return same type
- end
+ end
end
result
end
View
4 examples/rosettacode/guess-the-number.mirah
@@ -28,9 +28,9 @@ while !guessed do
if userNumber == number
guessed = true
puts "you guessed it"
- elsif userNumber > number
+ elsif userNumber > number
puts "too high"
else
- puts "too low"
+ puts "too low"
end
end
View
8 examples/rosettacode/hamming-numbers.mirah
@@ -15,13 +15,13 @@
import java.math.BigInteger
import java.util.PriorityQueue
-
+
def updateFrontier(x:BigInteger, queue:PriorityQueue):void
queue.offer(x.shiftLeft(1))
queue.offer(x.multiply(BigInteger.valueOf(3)))
queue.offer(x.multiply(BigInteger.valueOf(5)))
end
-
+
def hamming(n:int):BigInteger
raise "Invalid parameter" if (n <= 0)
@@ -42,8 +42,8 @@ end
nums = ""
1.upto(20) do | i |
nums = nums + " #{hamming(i)}"
-end
+end
puts "Hamming(1 .. 20) =#{nums}"
puts "\nHamming(1691) = #{hamming(1691)}"
-puts "Hamming(1000000) = #{hamming(1000000)}"
+puts "Hamming(1000000) = #{hamming(1000000)}"
View
44 examples/rosettacode/is-string-numeric.mirah
@@ -17,7 +17,7 @@ import java.text.NumberFormat
import java.text.ParsePosition
import java.util.Scanner
-# this first example relies on catching an exception,
+# this first example relies on catching an exception,
# which is bad style and poorly performing in Java
def is_numeric?(s:string)
begin
@@ -40,28 +40,28 @@ puts '1.2.3 is not numeric' unless is_numeric?('1.2.3')
# check every element of the string
-def is_numeric2?(s: string)
- if (s == nil || s.isEmpty())
- return false
- end
- if (!s.startsWith('-'))
+def is_numeric2?(s: string)
+ if (s == nil || s.isEmpty())
+ return false
+ end
+ if (!s.startsWith('-'))
if s.contains('-')
- return false
+ return false
end
- end
-
+ end
+
0.upto(s.length()-1) do |x|
c = s.charAt(x)
if ((x == 0) && (c == '-'.charAt(0)))
# negative number
elsif (c == '.'.charAt(0))
- if (s.indexOf('.', x) > -1)
+ if (s.indexOf('.', x) > -1)
return false # more than one period
- end
+ end
elsif (!Character.isDigit(c))
return false
end
- end
+ end
true
end
@@ -78,7 +78,7 @@ puts '1.2.3 is not numeric' unless is_numeric2?('1.2.3')
-# use a regular expression
+# use a regular expression
def is_numeric3?(s:string)
s == nil || s.matches("[-+]?\\d+(\\.\\d+)?")
end
@@ -94,12 +94,12 @@ puts '123- is not numeric' unless is_numeric3?('123-')
puts '1.2.3 is not numeric' unless is_numeric3?('1.2.3')
-# use the positional parser in the java.text.NumberFormat object
-# (a more robust solution). If, after parsing, the parse position is at
-# the end of the string, we can deduce that the entire string was a
+# use the positional parser in the java.text.NumberFormat object
+# (a more robust solution). If, after parsing, the parse position is at
+# the end of the string, we can deduce that the entire string was a
# valid number.
-def is_numeric4?(s:string)
- return false if s == nil
+def is_numeric4?(s:string)
+ return false if s == nil
formatter = NumberFormat.getInstance()
pos = ParsePosition.new(0)
formatter.parse(s, pos)
@@ -118,10 +118,10 @@ puts '123- is not numeric' unless is_numeric4?('123-')
puts '1.2.3 is not numeric' unless is_numeric4?('1.2.3')
-# use the java.util.Scanner object. Very useful if you have to
-# scan multiple entries. Scanner also has similar methods for longs,
-# shorts, bytes, doubles, floats, BigIntegers, and BigDecimals as well
-# as methods for integral types where you may input a base/radix other than
+# use the java.util.Scanner object. Very useful if you have to
+# scan multiple entries. Scanner also has similar methods for longs,
+# shorts, bytes, doubles, floats, BigIntegers, and BigDecimals as well
+# as methods for integral types where you may input a base/radix other than
# 10 (10 is the default, which can be changed using the useRadix method).
def is_numeric5?(s:string)
return false if s == nil
View
4 examples/rosettacode/palindrome.mirah
@@ -14,11 +14,11 @@
# limitations under the License.
-def reverse(s:string)
+def reverse(s:string)
StringBuilder.new(s).reverse.toString()
end
-def palindrome?(s:string)
+def palindrome?(s:string)
s.equals(reverse(s))
end
View
2 examples/rosettacode/random-numbers.mirah
@@ -19,7 +19,7 @@ list = double[999]
mean = 1.0
std = 0.5
rng = Random.new
-0.upto(998) do | i |
+0.upto(998) do | i |
list[i] = mean + std * rng.nextGaussian
end
View
2 examples/rosettacode/repeat-a-string.mirah
@@ -16,7 +16,7 @@
x = ""
-5.times do
+5.times do
x = x + "ha"
end
View
2 examples/rosettacode/reverse-a-string.mirah
@@ -14,7 +14,7 @@
# limitations under the License.
-def reverse(s:string)
+def reverse(s:string)
StringBuilder.new(s).reverse
end
View
10 examples/rosettacode/rot-13.mirah
@@ -20,14 +20,14 @@ def rot13 (value:string)
d = ' '.toCharArray[0]
value.toCharArray.each do |c|
testChar = Character.toLowerCase(c)
- if testChar <= 'm'.toCharArray[0] && testChar >= 'a'.toCharArray[0] then
+ if testChar <= 'm'.toCharArray[0] && testChar >= 'a'.toCharArray[0] then
d = char(c + 13)
end
- if testChar <= 'z'.toCharArray[0] && testChar >= 'n'.toCharArray[0] then
- d = char(c - 13)
- end
+ if testChar <= 'z'.toCharArray[0] && testChar >= 'n'.toCharArray[0] then
+ d = char(c - 13)
+ end
result += d
- end
+ end
result
end
View
4 examples/rosettacode/secure-temporary-file.mirah
@@ -16,8 +16,8 @@
import java.io.File
filename = File.createTempFile('prefix', '.suffix')
-
+
# Delete temp file when program exits
filename.deleteOnExit()
-
+
puts filename
View
2 examples/rosettacode/sleep.mirah
@@ -16,7 +16,7 @@
import java.util.Scanner
puts 'Enter time to sleep in milliseconds: '
-ms = Scanner.new(System.in).nextInt()
+ms = Scanner.new(System.in).nextInt()
puts 'Sleeping...'
Thread.sleep(ms)
puts 'Awake!'
View
10 examples/rosettacode/string-length.mirah
@@ -15,17 +15,17 @@
/**
* Java encodes strings in UTF-16, which represents each character with one
-* or two 16-bit values. The length method of String objects returns the
-* number of 16-bit values used to encode a string, so the number of bytes
+* or two 16-bit values. The length method of String objects returns the
+* number of 16-bit values used to encode a string, so the number of bytes
* can be determined by doubling that number.
-*/
+*/
s = "Hello, world!"
puts s.length() * 2
/**
-* Another way to know the byte length of a string is to explicitly
+* Another way to know the byte length of a string is to explicitly
* specify the charset we desire.
-*/
+*/
puts s.getBytes("UTF-16").length
puts s.getBytes("UTF-8").length
View
2 examples/swing.mirah
@@ -32,4 +32,4 @@ def self.run
end
end
-run
+run
View
2 examples/test.edb
@@ -6,4 +6,4 @@
<h1><%= @message %></h1>
</body>
</html>
-
+
View
2 examples/wiki/src/org/mirah/wiki/MirahWiki.duby
@@ -336,4 +336,4 @@ class MainFilter; implements Filter
nil
end
end
-end
+end
View
4 examples/wiki/src/org/mirah/wiki/edit.eduby.html
@@ -5,7 +5,7 @@
<div>
<form method=post>
<textarea id=body name=body style="width:95%;font-family:monospace" rows=5
- ><% if @page && @page.body %><%=h @page.body %><% end
+ ><% if @page && @page.body %><%=h @page.body %><% end
%></textarea><br>
Your Name: <input name=nickname value="<%=h nickname %>"><br>
Comment: <input name=comment value=<% if @page %>
@@ -39,4 +39,4 @@
})();
wmd_options={output:"markdown"};
</script>
-<script type="text/javascript" src="/wmd/wmd.js""></script>
+<script type="text/javascript" src="/wmd/wmd.js""></script>
View
2 examples/wiki/src/org/mirah/wiki/error.eduby.html
@@ -1,2 +1,2 @@
<h1>error:</h1>
-<p><%=h @error %></p>
+<p><%=h @error %></p>
View
60 examples/wiki/src/org/mirah/wiki/layout.eduby.html
@@ -3,51 +3,51 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title><%=h @title %></title>
- <link type="text/css" rel="stylesheet" href="/stylesheets/main.css">
+ <link type="text/css" rel="stylesheet" href="/stylesheets/main.css">
<link href="/stylesheets/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/javascripts/prettify.js"></script>
</head>
<body onload="prettyPrint()">
- <div id="page">
- <div id="sidebar">
+ <div id="page">
+ <div id="sidebar">
<h1>Mirah</h1>
-
- <ul id="sidebar-items">
-
- <li>
- <h3>Join the community</h3>
- <ul class="links">
+
+ <ul id="sidebar-items">
+
+ <li>
+ <h3>Join the community</h3>
+ <ul class="links">
<li><a href="/">Home Page</a></li>
<li><a href="http://github.com/mirah/mirah">github</a></li>
<li><a href="/wiki/Resources">Resources</a></li>
<li><a href="/wiki/MirahHowto">Howto</a></li>
- <li><a
+ <li><a
href="http://groups.google.com/group/mirah/"
- target="_new">Send Feedback</a></li>
- </ul>
- </li>
-
- <li>
- <h3>Sample Apps</h3>
- <ul class="links">
+ target="_new">Send Feedback</a></li>
+ </ul>
+ </li>
+
+ <li>
+ <h3>Sample Apps</h3>
+ <ul class="links">
<li><a href="http://github.com/mirah/mirah/tree/master/examples/appengine/">Guestbook</a> |
<a href="http://github.com/jacortinas/appengine-rails-jquery-demo">Mustache</a></li>
</ul>
<a href="/wiki/MirahSamples">Sample Code</a>
- </li>
-
- <li>
- <h3>Mirah Videos</h3>
- <ul class="links">
+ </li>
+
+ <li>
+ <h3>Mirah Videos</h3>
+ <ul class="links">
<li><a href="http://www.youtube.com/watch?v=08rNKxW0PPo">ribrdb</a> |
- <a href="http://confreaks.net/videos/196-rubyconf2009-ruby-mutants">headius</a></li>
- </ul>
- </li>
-
- </div>
-
- <div id="content">
+ <a href="http://confreaks.net/videos/196-rubyconf2009-ruby-mutants">headius</a></li>
+ </ul>
+ </li>
+
+ </div>
+
+ <div id="content">
<div id=hlinks>
<% if user %>
<%=h user.getEmail %>&nbsp;|&nbsp;
@@ -66,4 +66,4 @@
</div>
</body>
</html>
-
+
View
2 examples/wiki/src/org/mirah/wiki/parser.eduby.html
@@ -4,4 +4,4 @@
</p>
</form>
<h2>Parsed:</h2>
-<div><tt><%=h @parsed %></tt></div>
+<div><tt><%=h @parsed %></tt></div>
View
2 examples/wiki/war/app.yaml
@@ -18,4 +18,4 @@ handlers:
- url: /a/*
servlet: org.mirah.wiki.FederatedLogin
- url: /_ah/login_required
- servlet: org.mirah.wiki.LoginRequired
+ servlet: org.mirah.wiki.LoginRequired
View
2 examples/wiki/war/public/javascripts/prettify.js
@@ -58,4 +58,4 @@ o(){var a=m.prettyPrintedHtml,b,c,f,g,h,i,j,k;if(!a)return;f=m.sourceNode;if(!J(
[PR.PR_DECLARATION, /^(---|[.]{3})(?:[\r\n]|$)/],
[PR.PR_KEYWORD, /^\w+:[ \r\n]/],
]), ['yaml', 'yml']);
-})()
+})()
View
2 examples/wiki/war/public/stylesheets/main.css
@@ -153,4 +153,4 @@ pre.prettyprint {
top: 0;
right: 0;
margin-right:.5em;
-}
+}
View
2 examples/wiki/war/public/stylesheets/prettify.css
@@ -1 +1 @@
-.str,.atv{color:#080}.kwd,.tag{color:#008}.com{color:#800}.typ,.atn,.dec{color:#606}.lit{color:#066}.pun{color:#660}.pln{color:#000}pre.prettyprint{padding:2px;border:1px solid #888}@media print{.str{color:#060}.kwd,.tag{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{font-weight:bold}.lit{color:#044}.pun{color:#440}.atn,.typ{color:#404}.atv{color:#060}}
+.str,.atv{color:#080}.kwd,.tag{color:#008}.com{color:#800}.typ,.atn,.dec{color:#606}.lit{color:#066}.pun{color:#660}.pln{color:#000}pre.prettyprint{padding:2px;border:1px solid #888}@media print{.str{color:#060}.kwd,.tag{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{font-weight:bold}.lit{color:#044}.pun{color:#440}.atn,.typ{color:#404}.atv{color:#060}}
View
132 examples/wiki/war/public/stylesheets/sh_style.css
@@ -1,66 +1,66 @@
-pre.sh_sourceCode {
- background-color: white;
- color: black;
- font-style: normal;
- font-weight: normal;
-}
-
-pre.sh_sourceCode .sh_keyword { color: blue; font-weight: bold; } /* language keywords */
-pre.sh_sourceCode .sh_type { color: darkgreen; } /* basic types */
-pre.sh_sourceCode .sh_usertype { color: teal; } /* user defined types */
-pre.sh_sourceCode .sh_string { color: red; font-family: monospace; } /* strings and chars */
-pre.sh_sourceCode .sh_regexp { color: orange; font-family: monospace; } /* regular expressions */
-pre.sh_sourceCode .sh_specialchar { color: pink; font-family: monospace; } /* e.g., \n, \t, \\ */
-pre.sh_sourceCode .sh_comment { color: brown; font-style: italic; } /* comments */
-pre.sh_sourceCode .sh_number { color: purple; } /* literal numbers */
-pre.sh_sourceCode .sh_preproc { color: darkblue; font-weight: bold; } /* e.g., #include, import */
-pre.sh_sourceCode .sh_symbol { color: darkred; } /* e.g., <, >, + */
-pre.sh_sourceCode .sh_function { color: black; font-weight: bold; } /* function calls and declarations */
-pre.sh_sourceCode .sh_cbracket { color: red; } /* block brackets (e.g., {, }) */
-pre.sh_sourceCode .sh_todo { font-weight: bold; background-color: cyan; } /* TODO and FIXME */
-
-/* Predefined variables and functions (for instance glsl) */
-pre.sh_sourceCode .sh_predef_var { color: darkblue; }
-pre.sh_sourceCode .sh_predef_func { color: darkblue; font-weight: bold; }
-
-/* for OOP */
-pre.sh_sourceCode .sh_classname { color: teal; }
-
-/* line numbers (not yet implemented) */
-pre.sh_sourceCode .sh_linenum { color: black; font-family: monospace; }
-
-/* Internet related */
-pre.sh_sourceCode .sh_url { color: blue; text-decoration: underline; font-family: monospace; }
-
-/* for ChangeLog and Log files */
-pre.sh_sourceCode .sh_date { color: blue; font-weight: bold; }
-pre.sh_sourceCode .sh_time, pre.sh_sourceCode .sh_file { color: darkblue; font-weight: bold; }
-pre.sh_sourceCode .sh_ip, pre.sh_sourceCode .sh_name { color: darkgreen; }
-
-/* for Prolog, Perl... */
-pre.sh_sourceCode .sh_variable { color: darkgreen; }
-
-/* for LaTeX */
-pre.sh_sourceCode .sh_italics { color: darkgreen; font-style: italic; }
-pre.sh_sourceCode .sh_bold { color: darkgreen; font-weight: bold; }
-pre.sh_sourceCode .sh_underline { color: darkgreen; text-decoration: underline; }
-pre.sh_sourceCode .sh_fixed { color: green; font-family: monospace; }
-pre.sh_sourceCode .sh_argument { color: darkgreen; }
-pre.sh_sourceCode .sh_optionalargument { color: purple; }
-pre.sh_sourceCode .sh_math { color: orange; }
-pre.sh_sourceCode .sh_bibtex { color: blue; }
-
-/* for diffs */
-pre.sh_sourceCode .sh_oldfile { color: orange; }
-pre.sh_sourceCode .sh_newfile { color: darkgreen; }
-pre.sh_sourceCode .sh_difflines { color: blue; }
-
-/* for css */
-pre.sh_sourceCode .sh_selector { color: purple; }
-pre.sh_sourceCode .sh_property { color: blue; }
-pre.sh_sourceCode .sh_value { color: darkgreen; font-style: italic; }
-
-/* other */
-pre.sh_sourceCode .sh_section { color: black; font-weight: bold; }
-pre.sh_sourceCode .sh_paren { color: red; }
-pre.sh_sourceCode .sh_attribute { color: darkgreen; }
+pre.sh_sourceCode {
+ background-color: white;
+ color: black;
+ font-style: normal;
+ font-weight: normal;
+}
+
+pre.sh_sourceCode .sh_keyword { color: blue; font-weight: bold; } /* language keywords */
+pre.sh_sourceCode .sh_type { color: darkgreen; } /* basic types */
+pre.sh_sourceCode .sh_usertype { color: teal; } /* user defined types */
+pre.sh_sourceCode .sh_string { color: red; font-family: monospace; } /* strings and chars */
+pre.sh_sourceCode .sh_regexp { color: orange; font-family: monospace; } /* regular expressions */
+pre.sh_sourceCode .sh_specialchar { color: pink; font-family: monospace; } /* e.g., \n, \t, \\ */
+pre.sh_sourceCode .sh_comment { color: brown; font-style: italic; } /* comments */
+pre.sh_sourceCode .sh_number { color: purple; } /* literal numbers */
+pre.sh_sourceCode .sh_preproc { color: darkblue; font-weight: bold; } /* e.g., #include, import */
+pre.sh_sourceCode .sh_symbol { color: darkred; } /* e.g., <, >, + */
+pre.sh_sourceCode .sh_function { color: black; font-weight: bold; } /* function calls and declarations */
+pre.sh_sourceCode .sh_cbracket { color: red; } /* block brackets (e.g., {, }) */
+pre.sh_sourceCode .sh_todo { font-weight: bold; background-color: cyan; } /* TODO and FIXME */
+
+/* Predefined variables and functions (for instance glsl) */
+pre.sh_sourceCode .sh_predef_var { color: darkblue; }
+pre.sh_sourceCode .sh_predef_func { color: darkblue; font-weight: bold; }
+
+/* for OOP */
+pre.sh_sourceCode .sh_classname { color: teal; }
+
+/* line numbers (not yet implemented) */
+pre.sh_sourceCode .sh_linenum { color: black; font-family: monospace; }
+
+/* Internet related */
+pre.sh_sourceCode .sh_url { color: blue; text-decoration: underline; font-family: monospace; }
+
+/* for ChangeLog and Log files */
+pre.sh_sourceCode .sh_date { color: blue; font-weight: bold; }
+pre.sh_sourceCode .sh_time, pre.sh_sourceCode .sh_file { color: darkblue; font-weight: bold; }
+pre.sh_sourceCode .sh_ip, pre.sh_sourceCode .sh_name { color: darkgreen; }
+
+/* for Prolog, Perl... */
+pre.sh_sourceCode .sh_variable { color: darkgreen; }
+
+/* for LaTeX */
+pre.sh_sourceCode .sh_italics { color: darkgreen; font-style: italic; }
+pre.sh_sourceCode .sh_bold { color: darkgreen; font-weight: bold; }
+pre.sh_sourceCode .sh_underline { color: darkgreen; text-decoration: underline; }
+pre.sh_sourceCode .sh_fixed { color: green; font-family: monospace; }
+pre.sh_sourceCode .sh_argument { color: darkgreen; }
+pre.sh_sourceCode .sh_optionalargument { color: purple; }
+pre.sh_sourceCode .sh_math { color: orange; }
+pre.sh_sourceCode .sh_bibtex { color: blue; }
+
+/* for diffs */
+pre.sh_sourceCode .sh_oldfile { color: orange; }
+pre.sh_sourceCode .sh_newfile { color: darkgreen; }
+pre.sh_sourceCode .sh_difflines { color: blue; }
+
+/* for css */
+pre.sh_sourceCode .sh_selector { color: purple; }
+pre.sh_sourceCode .sh_property { color: blue; }
+pre.sh_sourceCode .sh_value { color: darkgreen; font-style: italic; }
+
+/* other */
+pre.sh_sourceCode .sh_section { color: black; font-weight: bold; }
+pre.sh_sourceCode .sh_paren { color: red; }
+pre.sh_sourceCode .sh_attribute { color: darkgreen; }

0 comments on commit d61a535

Please sign in to comment.