web-mode
web-mode copied to clipboard
web template editing mode for emacs
Hi there, is it possible to auto indent html attributes each on a new line? Like from this:  to something like this: 
Hello my config: ```elisp (add-to-list 'auto-mode-alist '("/templates/.*\\.html?\\'" . web-mode)) ;; (add-to-list 'auto-mode-alist '("/\\(components\\|containers\\|src\\)/.*\\.js[x]?\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.\\(handlebars\\|hbs\\)\\'" . web-mode)) (with-eval-after-load 'web-mode (setq web-mode-engines-alist '( ("handlebars" . "\\.\\(handlebars\\|hbs\\)\\'") ("django" ....
When I try to make a svelte element with several properties on individual lines, the indentation and highlighting gets a little messed up. For example, the following code is formatted...
Hi. Is it possible to customize the open/close tags for a Javascript region? I'm guessing `web-mode` interprets something inside a `` block as Javascript but I would like to be...
I would like for ```elisp (setq web-mode-extra-auto-pairs '( ("handlebars" . ( ("{{#each}}" "{{/each}}") ("{{#if}}" "{{/if}}" )) ))) ``` to work... but it doesn't. My current config is: ```elisp (add-to-list 'auto-mode-alist...
Hello, I'm coding some HTML that looks like this (its in a .ejs file if that matters): ``` Introduction to WebRTC * ``` My cursor is on the `*`. I'm...
When editing a handlebars buffer like this (`|` determines the current cursor position) ```handlebars | {{#if this.isOk}} Hello` style comment, but I want `{{!-- --}}`. Looking at `web-mode-comment-insert`, this could...
Now it looks like this: ```css .test font-size 10px color #fff ``` ``` emacs version 28.0.50 features RSVG GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON...
I think PR for #1005 brokes it. Example block of code: ```eex %> both %> min %> max ``` So it should be formatted this way. Right now it indents...
Pretty much as the title says; small and simple.