/    Sign up×
Community /Pin to ProfileBookmark

indenting dynamic text?

indent dynamic html/echo statements.

Is there any way of indenting html code that is dynamically generated as i indent all my other html/server side code only to have everything flat to the left when SS code is generated.?

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@bokehNov 03.2007 — Is there any way of indenting html code that is dynamically generated[/QUOTE]Just add some space in your echo statements where needed. The menu div in this demo is created dynamically with a recursive function.

Code here if you are interested.
Copy linkTweet thisAlerts:
@knowjauthorNov 04.2007 — Is there no simple way to just tab indents in then without adding information to each echoed statement as i am currently building a pretty extensive e-commerce system and i can see that putting unneeded load on each script.

Thanks for the help
Copy linkTweet thisAlerts:
@bokehNov 04.2007 — i can see that putting unneeded load on each script.[/QUOTE]You can't have your cake and eat it. There is no possible task that doesn't put extra load on the server. In this case the choice is between vanity and server load. Which is more important to you?
Copy linkTweet thisAlerts:
@knowjauthorNov 04.2007 — well i am a vain person but server load is going to take priority here.

Thanks for the help tho.
×

Success!

Help @knowj spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...