[RESOLVED] How can I personnalize the auto indent function
-
Hello,
I use N++ for wrintind article for Joomla in HTML5.
My “intranet” site is a Electronic document management in Joomla. I code every article in text (HTML), no wysiwyg tool.
SInce few week, I need to add some “french” (I am french) data-* html tag (For example <a href=“MyFile.pdf” data-auteur=“Marcel”, data-date-publication=“2002-09-09”, data-type=“facture”… and so on)
Every article are written in N++ for havins the “auto-indent” tooL. But, I’d like to personnalise this tool for having a carriage-return before EVERY data-* tag. So :<a href="MyFile.pdf" data-auteur="Marcel" data-type="facture data-date="2002-06-05">FACTURE</a>Should be auto-indent like :
<a href="MyFile.pdf" data-auteur="Marcel" data-type="facture" data-date="2002-06-05" data-... = ... >FACTURE</a>Can I have this result ?
Can I code a plugin for that and so Where can I have a tutorial ?Thanks a lot
-
@Lhuillier-Sébastien said in How can I personnalize the auto indent function:
Can I have this result ?
Can I code a plugin for that and so Where can I have a tutorial ?Someone else may be along with a nifty PythonScript to do this for you, but you can do this now, by simply moving to the
datain front of it, hiting return and then tab. Going to the nextdataand hitting return and now it will break to the indent you set in the last level. Otherwise, it’s going to require a scripting or macro of some time. I’m not that versed, so this is my non-script answer for you. :-) -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login