[go: up one dir, main page]

Menu

[r1810]: / www / lang-list-gen.rb  Maximize  Restore  History

Download this file

19 lines (15 with data), 272 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/ruby
list = `../colorer/bin/colorer -l`
groups = {}
list.each_line {|l|
g, t = l.split /:\s+/
t.chomp!
groups[g] = [] if groups[g].nil?
groups[g] << t
}
groups.each_key {|g|
puts "<h3>#{g}:</h3>"
groups[g].each{ |type|
puts "#{type}, "
}
}