0

This is my snippet and what I hope to get when I write "html-em" in my html file:

{
"HTML EM template": {
    "prefix": "html-em",
    "body": [
        <!DOCTYPE html>
        <html lang="en">
        <head>
            <meta charset="UTF-8">
            <meta name="viewport" content="width=device-width, initial-scale=1.0">
            <meta http-equiv="X-UA-Compatible" content="ie=edge">
            <title>My Website</title>
            
        </head>
        <body>
            <main>
                <h1>Welcome to My Website</h1>  
            </main>

        </body>
        </html> 

    ]

    "description": "HTML Template Base for English Menu"
    }
}

This is what I am getting:

en
UTF-8
viewport
width=device-width, initial-scale=1.0
X-UA-Compatible
ie=edge

No idea what is happening but I am not getting the expected piece of code

5
  • 1
    Please edit your question to add a tag for the language/framework you're using Commented Apr 23, 2024 at 15:37
  • How is that JSON template interpreted? Commented Apr 23, 2024 at 15:39
  • I wrote my snippet in html.json Commented Apr 23, 2024 at 15:44
  • And I am working in VScode Commented Apr 23, 2024 at 15:46
  • @irisk120 Why are you putting HTML in a JSON file? What happens to the .json file after that? Commented Apr 23, 2024 at 16:24

0

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.