Last active
August 29, 2015 14:10
-
-
Save argilzar/0504e053a5351946ca31 to your computer and use it in GitHub Desktop.
Replace mixedcase html tags with lowercase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In vim enter | |
| :%s/<\/\?\zs\(\a\+\)\ze[ >]/\L\1/g | |
| Tags as well | |
| :%s/\(<[^>]*\)\@<=\<\(\a*\)\ze=['"]/\L\2/g | |
| From: http://vim.wikia.com/wiki/Changing_all_HTML_tags_to_lowercase |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment