davidrios / pug-tmbundle

A comprehensive textmate / sublime text bundle for the Pug (formerly Jade) template language.
https://github.com/davidrios/pug-tmbundle
MIT License
48 stars 20 forks source link

How to Highlight Pug inside <template lang='pug'>? #34

Open mzaini30 opened 3 years ago

mzaini30 commented 3 years ago

I put Pug syntax inside this tag but not highlighting it.

<template lang="pug">
    .container.py-3
        h1.text-center Login
        hr
        form
            .mb-3
                label Username
                input.form-control
            .mb-3
                label Password
                input.form-control(type="password")
            .mb-3
                input(type="submit", value="Login").btn.btn-success
        p Belum memiliki akun? #[a(href="/daftar") Buat akun sekarang!]
</template>

<script>
    document.title = "Login"
</script>

How to highlight?

davidrios commented 1 year ago

Which editor / config are you using? It seems to work fine with Volar and VS Code:

image