Answer the question
In order to leave comments, you need to log in
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:
Maybe someone faced a problem and was able to put <?( *)?>
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question