I
I
ioio2014-03-28 14:46:28
Sublime Text
ioio, 2014-03-28 14:46:28

Sublime and HTML formatting with PHP code?

Found a good plugin for formatting html code. But there is a problem if the html code contains php tags: <?if():?>...<?endif?>
It looks like this:
143a96a42b82497e9f898213f4089407.png
Maybe someone faced a problem and was able to put <?( *)?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Velichko, 2014-03-28
@ioio

Sublime 3 already has this built in
Ctrl+Shift+P → Indentation: Reindent lines
You can also add a hotkey

[
  // Reindent
  {"keys": ["ctrl+shift+r"], "command": "reindent", "args": {"single_line": false} },

  // Convert spaces to tabs
  { "keys": ["ctrl+shift+x"], "command": "unexpand_tabs", "args": { "set_translate_tabs": false } },
]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question