How do I create a snippet for HTML in web-mode?

I tried the following, but it never shows up.

  (setq web-mode-extra-snippets
        '(("html" . (("indent" . "<p class=\"indent\">|" )))

I take it the "html" is the language where the snippet is appropriate, "indent" is the name, and the rest of it the actual snippet.

Also, am I escaping those quotes correctly?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.