Formating code in the HTML editor

User 398209 Photo


Registered User
3 posts

I hope this is a simple question. I'm trying to figure out if the HTML editor will automatically format code for me. By this I mean aligning tags in the code, properly indenting code lines, etc. I don't mean adding tags for bold, etc.

I'm hoping this editor will work like others do, and help me reformat my generally messy code layout.

Hope to change something like

<HEAD>
<TITLE>
This is a title
</TITLE>
</HEAD>

to

<HEAD>
<TITLE>
This is a title
</TITLE>
</HEAD>



Thanks
Don
User 355448 Photo


Ambassador
3,144 posts

Don,

Your message looks like both sets of tags are the same.

I suspect you are wanting automatic indenting of lines so that the spaces look like this:

***<head>
******<title>
*********This is a title
******</title>
***</head>

I think the code cleaner will do that. You may need to play around with the settings to get it to do things your way. Look under Tools and about half way down you will find code cleaner.

If I misunderstood, please let us know what you want to do.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.