Book a Demo

Author Topic: Escaping $ in Code Templates  (Read 3184 times)

tomp

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Escaping $ in Code Templates
« on: August 26, 2009, 10:51:29 pm »
I'm not sure if I'm missing something (the documentation seems a little thin in this area) but I can't seem to find a way of escaping $ in the code templates.

I.e.
I want to add some subversion tags to my class files such that the header is updated with version, date and the like on check in. I need to put the following in a comment block -> $LastChangedRevision: $, but when the class is generated I end up with this ->  : $

How do I escape the $ ?

Cheers

David Peters

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Escaping $ in Code Templates
« Reply #1 on: August 29, 2009, 02:27:05 am »
I have a similar question, I'm unable to escape a double quote.  Neither \" or "" seem to work.

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Escaping $ in Code Templates
« Reply #2 on: August 31, 2009, 08:58:12 am »
For dollar sign, use %dl%.
For double quote mark, use %qt%.

See: http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/literaltext.html

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Escaping $ in Code Templates
« Reply #3 on: August 31, 2009, 10:27:49 pm »
And to complete it for the single '\' character:
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1239181201/0#0

WBR
Günther