0

Hi everyone I've a problem making my snippet on VScode.

Here is the stippet:

"HTML5":{
    "prefix": "html5",
    "body":[
        "<!DOCTYPE html>",
        "<html lang='es'>",
        "\t<head>",
        "\t\t<meta charset='utf-8'>",
        "<meta name='viewport' content='width=device-width, initial-scale=1.0'>",
        "\t\t<title></title>",
        "\t</head>",
        "\t<body>",
        "\t</body>",
        "</html>"
    ],
    "description": "Basic HTML5 document."
}

I'd like to know how can I make string the attributes such the lang='es' , instead I want lang="es" as result. Some help? Thanks!

1 Answer 1

1

I believe you just need to escape the double quotes with a backslash, like so: \". Your snippet would look something like:

"body":[
    "<!DOCTYPE html>",
    "<html lang=\"es\">",
    ....
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.