[xpand] fixed indentation [message #541467] |
Mon, 21 June 2010 05:43  |
Eclipse User |
|
|
|
Is there any way to say to XPAND2, that I want a text to be located at at least column number NN?
I would like to have some basic indentation for variable assignment. At the moment I use a self-written function that takes the column number up to the inserted text, the inserted text, and the desired column. Like this:
«FOREACH this.getParameters() AS p-»
«p.getName()»«spacesToPos(4, f.getName(), 21)» = «f.getValue()»);
«ENDFOREACH-»
But this solution is not very good, I would like a solution that doesn't need the programmer to count spaces and provide the text two times. Something like
«FOREACH this.getParameters() AS p-»
«p.getName()»«spacesToPos(21)» = «f.getValue()»);
«ENDFOREACH-»
Is this possible?
|
|
|
|
Powered by
FUDForum. Page generated in 0.02762 seconds