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

Support rewrap of text in certain HTML tags #22

Closed
rummelsworth opened this issue Dec 15, 2016 · 5 comments
Closed

Support rewrap of text in certain HTML tags #22

rummelsworth opened this issue Dec 15, 2016 · 5 comments

Comments

@rummelsworth
Copy link

Rewrap 1.0.0 in VSCode 1.8.0

It'd be nice to support rewrap in HTML-embedded JS/CSS.

So that this:

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <script>
        // Support rewrap of JS comments in HTML script tags Support rewrap of JS comments in HTML script tags
    </script>
</head>

<body>
</body>

</html>

becomes this:

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <script>
        // Support rewrap of JS comments in HTML script tags Support rewrap of
        // JS comments in HTML script tags
    </script>
</head>

<body>
</body>

</html>

instead of this currently:

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <script>
        // Support rewrap of JS comments in HTML script tags Support rewrap of
        JS comments in HTML script tags
    </script>
</head>

<body>
</body>

</html>
@rummelsworth rummelsworth changed the title Support rewrap of text in HTML script tags Support rewrap of text in certain HTML tags Dec 15, 2016
@stkb
Copy link
Owner

stkb commented Dec 16, 2016

Hi @wrummler, thanks for the request.

This language-in-a-language scenario gives an interesting challenge and I'd like to do it. I don't think it'll be this side of Christmas though :)

Are there any tags other than <script> you'd like to see supported?

@rummelsworth
Copy link
Author

@stkb Probably just script and style elements for JS and CSS respectively. I guess other languages like TS and Less can exist in those elements depending on what environment you've chosen or configured, e.g. electron-compile. Not sure if that might complicate matters. Thanks for this extension 👍

@stkb
Copy link
Owner

stkb commented Dec 16, 2016

Ok that seems doable. I'll look into it

stkb added a commit that referenced this issue Jan 17, 2017
@stkb
Copy link
Owner

stkb commented Jan 18, 2017

Have added this in v1.1.0! Hope it works as you expect.

html-wrapping

@rummelsworth
Copy link
Author

Got it, and it works! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants