Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Beautify ASP Code

Status
Not open for further replies.

drbutterboy

Programmer
May 16, 2003
4
US
Can anyone recommend a good software tool to beatify asp code? I have soooo many nested elements that the finished code looks like a jig saw puzzle! Although, it works like a charm.. ;)

Thanks!
 
no such tool exsists other then good programming style

you'll need to run back through the logic and optimize the scripts in order to cahnge the style to "beatify" it

___________________________________________________________________
[sub]
onpnt.com
SELECT * FROM programmers WHERE clue > 0
(0 row(s) affected) -->faq333-3811
[/sub]

 
Define beautify?

If I squint hard enough all of my code looks like jigsaws too, because I indent for functional blocks, html inner elements, etc. maybe a jigsaw with wierd hairs becaue i also put 8 column length comment lines on top of my functions to break them up into easier findable blocks...

[sub]01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111[/sub]
The never-completed website:
 
I see pink and pruple spots in my code -- wait....that's just the lack of sleep and hours of looking at a monitor [lol]

___________________________________________________________________
[sub]
onpnt.com
SELECT * FROM programmers WHERE clue > 0
(0 row(s) affected) -->faq333-3811
[/sub]

 
Especially those[highlight purple] pruple [/highlight] ones

[sub]01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111[/sub]
The never-completed website:
 
Here's an example: I have heard that there are software programs that will allign the beginning tags and ending tags like this:

Before:

<table cellpadding="2" cellspacing="0" width="100%">
<tr>
<td width="5%">
<%objWC.WriteDateOptionSpecific%>
</td>
<td width="30%">
Specific Date
</td>
<td width="5%">
<%objWC.WriteDateOptionRange%>
</td>
</tr>

After:
<table cellpadding="2" cellspacing="0" width="100%">
<tr>
<td width="5%">
<%objWC.WriteDateOptionSpecific%>
</td>
<td width="30%">
Specific Date
</td>
<td width="5%">
<%objWC.WriteDateOptionRange%>
</td>
</tr>
</table>

Home Site has a codesweeper function that does this for HTML but it doesn't work for ASP.
 
Visual Studio .NET has a feature for this as well. It generally works pretty well but does not react well to all situations or code errors.

Nothing replaces the use of the tab key though! :)

Wow JT that almost looked like you knew what you were doing!
 
Dreamweaver is the tool mate...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top