Skip to content

Instantly share code, notes, and snippets.

@cacheleocode
Created August 21, 2012 23:34
Show Gist options
  • Select an option

  • Save cacheleocode/3420472 to your computer and use it in GitHub Desktop.

Select an option

Save cacheleocode/3420472 to your computer and use it in GitHub Desktop.
Quash/Unquash for Eclipse
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