Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to put marker in xml #63

Closed
eiswind opened this issue Jan 18, 2018 · 2 comments
Closed

Allow to put marker in xml #63

eiswind opened this issue Jan 18, 2018 · 2 comments
Labels

Comments

@eiswind
Copy link

eiswind commented Jan 18, 2018

xml has a different way of writing comments. Maybe I'm jus dumb, but I fail to put markers for snippets in xml files. I tried various variants but they are not recognized. Is there a way to achieve this?

@azu azu added the question label Jan 18, 2018
@azu
Copy link
Owner

azu commented Jan 18, 2018

This feature have been introduced in #12 by @gdolle
This feature is based on https://www.stack.nl/~dimitri/doxygen/manual/commands.html#cmdsnippet
I don't know how doxygen support XML.

Current implementation may support following style.
(I do not try it yet)

<!-- [marker] -->
<paragraph />
<!-- [marker] -->

const commentOpen = "(/+/+|#|%|/\\*|<!--)";
const commentClose = "(\\*/|-->)?";

@eiswind
Copy link
Author

eiswind commented Jan 19, 2018

Thanks for pointing me to the right place in the code. After understanding the regex patterns I found that

<!--![vaadin]-->

works fine

@eiswind eiswind closed this as completed Jan 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants