Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-16 04:51:41

Pascal
New Member
Registered: 2008-01-16
Posts: 2

Formatting of outputted HTML & General Workflow

Hi, I’m fairly new to Textpattern, but an old hand at HTML/CSS.

One thing that I’m struggling to see beyond is how untidy the outputted HTML code is when you view the source of a parsed page. (I.e. code indentation is all over the place.) Not only is it painful to look at, but it makes troubleshooting HTML problems really unpleasant. I’m usually very particular about how tidy and readable my HTML is, so this really bugs me.

I understand why this happens, but I was wondering if any experienced TXP users have found a workflow workaround to this issue?

—-

And I’m also beginning to wonder what the optimum TXP workflow methods would be. Copying and pasting from the built in web interface gets old really quickly, but I have just installed the Textmate TXP bundle and that seems to streamline the process quite a bit.

I would love to hear from anyone who has struggled with the workflow and found a really good solution, particularly OSX users.

—-

Thanks

Offline

#2 2008-01-16 08:34:41

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: Formatting of outputted HTML & General Workflow

Pascal wrote:

Copying and pasting from the built in web interface gets old really quickly, but I have just installed the Textmate TXP bundle and that seems to streamline the process quite a bit.

I’m using It’s All Text, a Firefox extension that interacts nicely between the textareas of the web interface and Textmate.

Offline

#3 2008-01-16 09:12:16

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: Formatting of outputted HTML & General Workflow

Sven, do you know if there is something similar to “It’s All Text” for Safari?


TXP Builders – finely-crafted code, design and txp

Offline

#4 2008-01-16 11:27:27

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Formatting of outputted HTML & General Workflow

One thing that I’m struggling to see beyond is how untidy the outputted HTML code is when you view the source of a parsed page. (I.e. code indentation is all over the place.) Not only is it painful to look at, but it makes troubleshooting HTML problems really unpleasant. I’m usually very particular about how tidy and readable my HTML is, so this really bugs me.

Modify your pages/forms accordingly (with/without linebreaks and tabs). There will still be a couple spots where it’s off, but overall you can still manipulate things to where you want them.

Offline

#5 2008-01-17 06:20:22

Pascal
New Member
Registered: 2008-01-16
Posts: 2

Re: Formatting of outputted HTML & General Workflow

@sven: Thanks for reminding of that. I’d seen it before but had no need of it until now.

@mary: I’m not exactly sure what you mean by that. I’ve seen how some TXP developers will forsake all indentation, but that is almost unreadable to me. Even the textpattern.com and textpattern.org sites have untidy code formatting. Your own site seems to have indentation intact.

I have tried to amend my forms by adding in extra tabs when necessary so that it all indents nicely in output, but that’s very labour intensive and a bit hit and miss. Also, then the forms become hard to read.

I was hoping someone might have discovered some shortcut methodology to preserving those indentations that I like so much.

Offline

Board footer

Powered by FluxBB