Rosetta Code:Village Pump/Pre to Lang Tag Fixer: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 47: | Line 47: | ||
lululu |
lululu |
||
=={{header|Python}}== |
=={{header|Python}}== |
||
Line 53: | Line 52: | ||
aiaiai |
aiaiai |
||
</lang> |
</lang> |
||
=={{header|C sharp}}== |
=={{header|C sharp}}== |
||
Line 59: | Line 57: | ||
aiai |
aiai |
||
uiui |
uiui |
||
</lang> |
|||
</pre> |
</pre> |
||
Revision as of 23:30, 20 February 2009
I'm thinking, if we did Code Tag Fixer, why not make a Pre Tag Fixer? I already did a bot, but i need a hash/dict, like this:
Python = python
C Sharp = csharp
Java = java5
Common Lisp = lisp
I need this, because just lowercasing and removing spaces isn't very secure.
Input: <lang>
Ada
testeblabla
lalal
lululu
Python
aiaiai
C#
aiai uiui
</lang>
Output:
=={{header|Ada}}== testeblabla <lang ada> lalal </lang> lululu =={{header|Python}}== <lang python> aiaiai </lang> =={{header|C sharp}}== <lang csharp> aiai uiui </lang>
--Guga360 23:27, 20 February 2009 (UTC)