Created
August 21, 2012 23:34
-
-
Save cacheleocode/3420472 to your computer and use it in GitHub Desktop.
Quash/Unquash for Eclipse
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
| http://www.eclipse.org/ | |
| Quash (only lines with the velocity code) | |
| Find: ^(\s+)([\$|#]) | |
| Replace: #*$1*#$2 | |
| Un-quash | |
| Find: ^#\*(\s+)\*# | |
| Replace: $1 | |
| ----------- | |
| Replace empty lines with ## (multiple lines will be replaced into one | |
| line with ##) | |
| Find: ^([\r\n\s]+)[\r\n] | |
| Replace: ##\r\n | |
| Add ## at the end of lines w velocity code | |
| Find: (^([\s|\$|#]).+[^#]$) | |
| Replace: $1## |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment