auto-ident on html page does not work
-
Hi all, the auto-ident function does not work on my simple html page.
Any hint? -
the built in auto indent of notepad++ does not indent your html tags, but it keeps the indentation at the tab level you used on the previous line.
if you want to automatically indent, or clean up your indents, you will need to use one of the indentation or tidy up plugins.in this example i use indent by fold 0.7.1, which you can install either manually, or automatically using the built in “plugins admin” of the current notepad++ version 7.6.3, or “plugin manager” on versions 7.5.9 and below.
- install the plugin “ident by fold”
- open a html file, or create any unformatted html code
here is a screenshot of unindented html code:
- now go to the menu
plugins > indent by fold > reindent file
, and your code will be correctly indented
note: indent by fold works completely without an own parser, independent of any programming languages, as it uses the folding information of any built in or custom lexer or even user defined languages. it will work on any language, as long as the folding structure of the lexer or udl is set correctly. 👍
side note: there is no need for double posting.
all community members who can help, will read your request, regardless of if it is at help wanted, or at general discussion. -
Thanks twice than :-)
by the way, wrong instruction on plugin installation. According to my today experience, inside plugin directory, create new folder with same name of dll file.
-
by the way, wrong instruction on plugin installation. According to my today experience, inside plugin directory, create new folder with same name of dll file.
which version are you on ?
which of my installation instructions were wrong ?if you follow my guide, it clearly states:
in this example i use indent by fold 0.7.1, which you can install either manually, or automatically using the built in “plugins admin” of the current notepad++ version 7.6.3, or “plugin manager” on versions 7.5.9 and below.
which also means that you must not use plugin manager to install anything on 7.6 and above
and no manual installation method was given.please share your experiences of today here at the community, as none of them seem to have been guided by us.
-
latest version 32bit
now Indent by fold works
after creating IndentByFold folder within plugins one, and copying the dll file inside IndentByFold folder.now works with 32 bits
but I have a huge question for you :-)
I have to code huge file in HTML and SVG tags. HTML works selecting HTML language. For checking SVG code I have to pass to XML language.
Is there a way to combine both languages?
-
glad it works for you, @Adriano-Ellero 👍
latest version 32bit
now Indent by fold works
after creating IndentByFold folder within plugins one, and copying the dll file inside IndentByFold folder.what i still don’t understand is, why you had to create any folders or did a manual install, because on the latest notepad++ 7.6.3 32 bit, or following my instructions, you just go to
plugins > plugins admin
search for fold, select “indent by fold” or any other available plugin, and press install, like seen at the screenshot below.I have to code huge file in HTML and SVG tags. HTML works selecting HTML language. For checking SVG code I have to pass to XML language.
Is there a way to combine both languages?i don’t know if an udl (user defined language) which combines both has already been made yet, as i don’t work with svg.