|
|
|
OK I did \$ and it did work. The reason why I thought I "tried" \$ before is because the syntax highlighting for it does not work. It highlights \ as an "illegal character" and the $Revision part is still bolded and colored as if it was going to be variable-replaced so I assumed that IDEA was still parsing my template as a variable there. I would probably still consider the syntax highlighting issue a usability bug because the user isn't given any indication that the \$ escaping works and the documentation below doesn't mention escaping, so users would probably try different techniques until they saw the coloring change back to a string.
I guess the templating engine changed between IDEA 6 and 7 as our team has used this template for a long time. It would probably be a good idea to document it because others may experience "breaking" changes as well. |
|||||||||||||||||||||||||||||||||||||||||||
public static final String revision = "\$Revision: $";