Defect #15920 ยป migrate_from_trac.codeblock.patch
| migrate_from_trac.rake.codeblock 2014-01-21 16:18:31.830335105 +0100 | ||
|---|---|---|
|
# We would like to convert the Code highlighting too
|
||
|
# This will go into the next line.
|
||
|
shebang_line = false
|
||
|
# Reguar expression for start of code
|
||
|
pre_re = /\{\{\{/
|
||
|
# Code hightlighing...
|
||
|
# Regluar expression for start of code
|
||
|
pre_re = /^\s*\{\{\{\s*$/
|
||
|
# Code highlighting...
|
||
|
shebang_re = /^\#\!([a-z]+)/
|
||
|
# Regular expression for end of code
|
||
|
pre_end_re = /\}\}\}/
|
||
|
pre_end_re = /^\s*\}\}\}\s*$/
|
||
|
|
||
|
# Go through the whole text..extract it line by line
|
||
|
text = text.gsub(/^(.*)$/) do |line|
|
||