Sublime Forum

Indent and tab key with html inside php document

#1

I am pretty new with sublime text and I have a new user issue that happens when i am editing html in a php file, might be 2 issues related:

  1. when i am editing the inner contents of an element, (indented 1 tab), when i have made the opening and closing tags, when i start to type, it out-dents automatically so the contents are the same amount of tabs as the container (doesnt happen in any other syntax).
    example:
    `

    (tab) contents
    ` turns into: `
    contents
    `
    1. pressing Enter/Return after opening an element (like div) does not start a newline, but inserts “php” (no quotes) at the end of the tag.
      example:
      <div>php

    how do i stop these from happening?

0 Likes

#2

your number 1 looks like: ST3 Bug: Indenting moves in HTML

your number 2 I’m not sure about. Can you replicate it on a clean/reverted state in build 3120?

0 Likes