Skip to content

js-beautify ignore tags are ignored #215

@MarcCoquand

Description

@MarcCoquand

According to

beautifier/js-beautify#575

And

beautifier/js-beautify#384

It should be possible to ignore lines with the formatter. I'm trying to use vscode-html-languageservice to format some go template code:

<!-- beautify ignore:start -->
<script type="text/javascript">
  /*ignore js-beautify start*/
  {{template "scripts/file-size".} }
  /*ignore js-beautify end*/
</script>
<!-- beautify ignore:end -->

And neither comments work, there is a space added to the bracket which breaks the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions