8 filename = stdin.readline.strip # Read first line (filename).
9 contents = stdin.read # Read rest (code).
11 class FakeBlob < Linguist::FileBlob
12 def initialize(path, content, base_bath=nil)
13 super(path, base_bath)
26 blob = FakeBlob.new(filename, contents)
27 detected = if blob.language
34 #puts "File #{filename}"
40 html = Pygments.highlight(contents,
46 :lineanchors => 'loc',
47 :anchorlinenos => true})