Rosetta Code/Fix code tags: Difference between revisions
Content added Content deleted
(Updated D entry) |
m (Added the Sidef language) |
||
Line 776: | Line 776: | ||
Quo quis graecis vivendo te, <lang baz>posse nullam lobortis ex usu</lang>. Eam volumus perpetua |
Quo quis graecis vivendo te, <lang baz>posse nullam lobortis ex usu</lang>. Eam volumus perpetua |
||
constituto id, mea an omittam fierent vituperatoribus. </pre> |
constituto id, mea an omittam fierent vituperatoribus. </pre> |
||
=={{header|Sidef}}== |
|||
<lang ruby>var langs = %w(ada cpp-qt pascal lscript z80 visualprolog |
|||
html4strict cil objc asm progress teraterm hq9plus genero tsql |
|||
email pic16 tcl apt_sources io apache vhdl avisynth winbatch |
|||
vbnet ini scilab ocaml-brief sas actionscript3 qbasic perl bnf |
|||
cobol powershell php kixtart visualfoxpro mirc make javascript |
|||
cpp sdlbasic cadlisp php-brief rails verilog xml csharp |
|||
actionscript nsis bash typoscript freebasic dot applescript |
|||
haskell dos oracle8 cfdg glsl lotusscript mpasm latex sql klonec |
|||
ruby ocaml smarty python oracle11 caddcl robots groovy smalltalk |
|||
diff fortran cfm lua modula3 vb autoit java text scala |
|||
lotusformulas pixelbender reg _div whitespace providex asp css |
|||
lolcode lisp inno mysql plsql matlab oobas vim delphi xorg_conf |
|||
gml prolog bf per scheme mxml d basic4gl m68k gnuplot idl abap |
|||
intercal c_mac thinbasic java5 xpp boo klonecpp blitzbasic eiffel |
|||
povray c gettext).join('|'); |
|||
var text = ARGF.slurp; |
|||
text.gsub!(Regex.new('<(' + langs + ')>'), {|s1| "<lang #{s1}>" }); |
|||
text.gsub!(Regex.new('</(' + langs + ')>'), "</" + "lang>"); |
|||
text.gsub!( |
|||
Regex.new('<code\h+(' + langs + ')>(.*?)</code>', 's'), |
|||
{|s1,s2| "<lang #{s1}>#{s2}</" + "lang>"} |
|||
); |
|||
print text;</lang> |
|||
=={{header|Tcl}}== |
=={{header|Tcl}}== |