Book a Demo

Author Topic: Escape dollar sign in code generation template  (Read 2374 times)

Robest

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Escape dollar sign in code generation template
« on: December 19, 2006, 07:02:51 am »
Hi,

I need to escape the dollar sign in a code generation template.

I want to include some perforce directives in my standard file header eg:

// $Revision: #1 $

but the $Revision is being interpreted (I guess) as a variable and is being dropped. I've tried $$ and \$ - how do I escape the $?

Cheers
Rob

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile

Robest

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Escape dollar sign in code generation template
« Reply #2 on: December 19, 2006, 11:53:34 pm »
Oops sorry - will rtfm better next time...

Thanks
Rob