plantuml-syntax icon indicating copy to clipboard operation
plantuml-syntax copied to clipboard

Support @startuml anywhere in a document

Open oliv3r opened this issue 4 years ago • 3 comments

While getting the data from the first line is probably from a performance pov the most desirable, but with PlantUML also being integrated in other bits and parts (within markdown for example, one can do

```plantuml
@startuml...

and so having syntax highlighting within markdown would be very nice to have.

The same can be said for other languages of course, like within code comments etc.

oliv3r avatar Apr 01 '20 12:04 oliv3r

Yes, that sounds like a goo idea!

However, I do not think that this plugin imposes a limit on where you can place the @startuml.

What are you doing to get include the @startuml in a fenced code block?

aklt avatar Jun 25 '20 17:06 aklt

Sorry @aklt for the extremly late reply. I was just looking for a plantuml plugin, thinking I didn't have one, found this repo, was like oh cool, read the readme and figured, oh this requires an issue :)

Anyway, I think it is becoming quite common to put plantuml statements in markdown documents.

For example:

# Chapter 1
Some text


## PlantUML example
@startuml
Alice -> Bob : Hello
@enduml

Some final words

Right now, it just confuses Vi because it doesn't know if it's plantuml or markdown :(

oliv3r avatar Feb 18 '22 15:02 oliv3r

hi~ @oliv3r about "put plantuml statements in markdown documents", do you have some suggestions or other plugin? please

baober90 avatar Jun 14 '23 08:06 baober90