remove comment notations from the begin of each line

0 votes
asked May 17, 2013 in Wanted features by laplasz (160 points)

I have to put the commands into source code.

That is why it looks like this:

 

//@startuml
//Node <- SUT : AAR
//SUT -> Node : AAA
//@enduml
 
But when these lines are copied into a renderer (servlet feature) I got an error: Syntax error?
What should I do? I dont want to remove all the //, * or # from each line
is there any solution for that?

 

2 Answers

+1 vote
answered May 18, 2013 by plantuml (295,000 points)
selected May 20, 2013 by laplasz
 
Best answer
Hello,

This has been solved in version 7966.

Tell us if it's fine for you.

Regards,
commented May 20, 2013 by laplasz (160 points)
Thanks for the quick update - I tried with this:
//Bob -> Alice : hello
//Bob <- Alice : szia
on http://www.plantuml.com/ - 7966, but still not working...
Syntax error?
commented May 20, 2013 by plantuml (295,000 points)
You have to explicity put @startuml:

//@startuml
//Bob -> Alice : hello
//Bob <- Alice : szia
//@enduml

Otherwhise, it's difficult to guess which characters have to be ignored.
Is it ok for you ?
commented May 20, 2013 by laplasz (160 points)
thanks, just perfect!
+1 vote
answered May 17, 2013 by plantuml (295,000 points)

Thanks for the report

It seems like a bug of the servlet. We will investigate this.

As workaround (depending of your language source), you may use:

/*
@startuml
Node <- SUT : AAR
SUT -> Node : AAA
@enduml
*/

Regards,

 

commented May 17, 2013 by laplasz (160 points)
yes - I would use it if I can - but my language not support this... thanks for the quick response!
...