asciidecorator icon indicating copy to clipboard operation
asciidecorator copied to clipboard

Wrap output in comment tags

Open kieron opened this issue 5 years ago • 3 comments

Hi, how could you wrap the output in comment tags?

kieron avatar Jun 20 '20 16:06 kieron

Sorry, this isn't implemented here yet.

helixquar avatar Jun 23 '20 12:06 helixquar

Future implementer's reference:

In the original Sublime Text extension this feature is controlled with the setting:

"default_insert_as_comment": false

The way it appears to be implemented is by checking the current syntax's comment and adapting to it e.g. if current syntax is 'C', all insertions will be preceded with "\". There appears to be no block-comment support.

If current syntax is plain text or has no way to comment, insertion functions normally.

helixquar avatar Jun 23 '20 12:06 helixquar

Ah thank you I understand.

Way back in the day, ty I remember having to just 'bodge' it by adding block comment tag to each end of the final value 😆 but that only worked on documents where you the comment tag you chose, was appropriate.

kieron avatar Jun 25 '20 07:06 kieron