Book a Demo

Author Topic: Code format?  (Read 3361 times)

ukmtk

  • EA User
  • **
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Code format?
« on: September 20, 2006, 03:42:54 am »
If one uses the inbuilt editor or even the code generation facility is it possible to alter the format of edited/generated code?

Or is it up to the user to do this in an external editor/environment?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Code format?
« Reply #1 on: September 20, 2006, 04:32:42 am »
Both Mike,

There's a lot you can do by customizing the generation scripts. As a starting point - at least for formatting the output - take a look at the PO macro and other literal text handling. [In build 797 you will have to search on PI in the HTML help to find these two entries.] Follow through the documentation for more ideas.

EA's capabilities go a bit beyond what you'll find there, but are certainly not extensive. You can extend things by editing on the 'outside' with any good code editor. If you are experienced with a top-end editing environment you may find it useful to create some custom macros there, which look for EA-generated constructs and tweak them to your specifications.

HTH, David
No, you can't have it!