Skip to content

How to replace content in (un) commented line #503

@zdm

Description

@zdm

Try to comment following line in HTML:

aaa --> bbb

Currently produced incorrect HTML comment string:

<!-- aaa --> bbb -->

Expecting result:

<!-- aaa &#45;-> bbb -->

tcomment has settings which allows to set replacement:

let g:tcomment#replacements_xml = {
\   '<!--': '<!-&#45;',
\   '-->': '&#45;->'
\ }

When uncommenting replacement performed in the reverse order.

How is it possible to achieve something similar?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions