Sublime Forum

Completions with html5 package

#1

Hello,

I’m new using sublime and I have a problem using html5 package completions. Maybe there’s a command around that should solve it and you can tell.

When I’m typing like:

<!doc

Sublime offer me to complete this to become <!doctype html (Yes, this exactly what I want). But after complete, the final row is:

<!<!doctype html

Can somebody help me?
I know it’s not a critical thing but it decrease performance because I need to comeback and erase one “<!”
I don’t used the “>” at the end of the tags here because this page html recognize it as a command

And thanks for your attention

0 Likes

#2

I guess you can just type doctype Tab

3 Likes

#3

A reasonable enhancement for that package might be a duplicate snippet with a lookbehind that sees the opening punctuation and doesn’t insert it.

2 Likes

#5

it don’t work :confused:

0 Likes

#6

Did you change the file type (syntax) to HTML when you started the file?

0 Likes

#7

Yes, I did

0 Likes

#8

Do this:

  • New File
  • Set syntax to HTML
  • type 'html" (without the quotes)
  • Press TAB
  • Press ENTER
    This will give you a skeleton HTML script which you can edit.
0 Likes