#
# Vi/Ex/Sed commands to uppercase all HTML tags
#
# Yes I know this is not common practise, but it used to be!
# I found using capitials makes for clearer syntax when directly
# editing HTML files.
#
:%s/<\(\/*\)html>/<\1HTML>/g
:%s/<\(\/*\)head>/<\1HEAD>/g
:%s/<\(\/*\)body\([ >]\)/<\1BODY\2/g
:%s/<\(\/*\)address>/<\1ADDRESS>/g
:%s/<\(\/*\)title>/<\1TITLE>/g
:%s/<\(\/*\)meta /<\1META /g
:%s/<\(\/*\)center>/<\1CENTER>/g
:%s/<\(\/*\)h\([1-7]\)\([ >]\)/<\1H\2\3/g
:%s/<\(\/*\)ul\([ >]\)/<\1UL\2/g
:%s/<\(\/*\)ol>/<\1OL>/g
:%s/<\(\/*\)li>/<\1LI>/g
:%s/<\(\/*\)dl>/<\1DL>/g
:%s/<\(\/*\)dt>/<\1DT>/g
:%s/<\(\/*\)dd>/<\1DD>/g
:%s/<\(\/*\)table\([ >]\)/<\1TABLE\2/g
:%s/<\(\/*\)tr\([ >]\)/<\1TR\2/
:%s/<\(\/*\)th\([ >]\)/<\1TH\2/
:%s/<\(\/*\)td\([ >]\)/<\1TD\2/
:%s/<\(\/*\)p\([ >]\)/<\1P\2/g
:%s/
]\)/
]\)/
# # Substitute PRE Characters... # :'a,'b s/\&/\&/g :'a,'b s/\</g :'a,'b s/>/\>/g # # Other Substitutions (once off fixes) # # Quote the Src Argument #:%s/SRC= *\([^"][^ ]*\)/SRC="\1"/ #:%s/^ */<\1BLOCKQUOTE>/ #:%s/gif">/gif">/ #:%s/htm">/html">/ # :'a,'b s/
/