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

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

Open
mzaini30 opened this issue Mar 7, 2021 · 1 comment
Open

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

mzaini30 opened this issue Mar 7, 2021 · 1 comment

Comments

@mzaini30
Copy link

mzaini30 commented Mar 7, 2021

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
Copy link
Owner

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

image

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