Existe um plugin ou outro método para HTML com intenção automática enquanto você escreve o código?
Duas possibilidades:
-
Use o plugin TextFX que tem o HTML Tidy integrado.
-
Use o plug-in Recuar por dobra (veja abaixo).
Plug-in IndentByFold para o Notepad ++
Here's your php code indented by fold:
(The image above is not assembled from two separate images! Notepad++ has the ability to clone its tabs in a new view)
You can access here a screencast demo for the
Indent by fold
plugin. There's no separate plugin for theauto complete
feature in the video; for most languages there are defined already xml files with keywords:Now, about the
Code Alignment
plugin: just use it only if you are not satisfied with theIndent by fold
results!
Here's how you can define a shortcut for the the indent operation:
Settings/Shortcut mapper/Plugin Commands
The
Ctr + K
andCtrl + D
shortcuts key are already "taken" (bycomment code
andduplicate selection
), therefore I've choosed another combination. But everyone can re-map all the commands according to own needs.
If anytime you find a language with a "weak"
code formatting / folding
you can take the lead, and proceed in defining your own folding and coloring rules for keywords, comments, numbers, operators and delimiters:See how beautiful
Indent by fold
works when I pressALt + K
?The vbproc keyword is underlined because the
DSpellChecker
plugin is active.Here are a zillion UDLs (User Defined Languages) for Notepad++. To better understand how to use this feature I recommend you to read the UDL 2.0 online documentation. It was a time when folding was possible only for single words like "BeginSub" and "EndSub". Now it is easier because folding can be done using expressions, as you can see in my My better ASP example. Even now, the UDL cannot address every imaginable situations (there is a work in progress called UDL 3). But can we blame the Notepad++ developers for not achieving perfection with this free and simple, yet wonderful utility?
Resposta da fonte Plugin de recuo automático para o Notepad ++ por Sorin Călinică