tomblachut / svelte-intellij

Svelte components in WebStorm and friends
MIT License
485 stars 38 forks source link

Support Pug #26

Closed dariuspranskus closed 4 years ago

dariuspranskus commented 5 years ago

Hello

We can enable different html and style languages with svelte-preprocess plugin. This allows the following syntax

<template lang="pug">
... markup in pug syntax
</template>

<style lang="stylus">
...style definitions in stylus syntax
</stylus>

To have intellisense for these languages would be very beneficial?

Thank you

tomblachut commented 5 years ago

For styles please see #17 and #29

Pug is non standard, PRs are welcome.

tomblachut commented 4 years ago

Closing this due to inactivity. I personally don't know anyone that uses Pug, if anyone want to tackle this AND maintain it further down the line, do not hesitate to reach out.

Grawl commented 1 year ago

I use Pug, and there is more than a million downloads of Pug from NPM in October 2022

Grawl commented 1 year ago

For everyone who want to use IntelliJ IDE with Svelte and Pug, there is a tip on You Track:

If we add a comment <!--language=Pug--> before <template> tag to force language injection, syntax highlight will start to work.

Just checked it and it works

@tomblachut it is that complex to add at least syntax highlighting?