Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Swithcing Views

I have been HTMLing for a week now and I like to do most of it in HTML view.  However, I'm not confident enough to avoid peeking now and again.

When I switch back the 'Code' is mutilated, for lack of a better word.  What's up with that and can it be avoided somehow?

_
Friday, August 20, 2004

HTML mode is now a misnomer.  XHTML or source mode might be better? In CityDesk 1.0, HTML mode showed the HTML source code.  CityDesk 2.0 wants valid XHTML (XML-like HTML, or something).

CityDesk 2.0 runs an XHTML validator against your tags when you switch from "HTML mode" to "Normal mode."  If your code is not 100% valid XHTML, CityDesk may fix it by closing tags, throw away part of your document, or all of your document--It is really a crap shoot. 

So, beware, if you are using HTML mode (read XHTML mode) you better keep good backups,  learn what valid XHTML is, or both.  Or, if you want to keep on using HTML, stay in either Normal mode or HTML mode--don't switch between views.

David Burch
Friday, August 20, 2004

Thanks, much appreciated!

_
Friday, August 20, 2004

BTW: You can learn more about XHTML here: http://www.w3.org/.

Some basics: Tag elements are lowercase, attribute values are always quoted, and all tags must be closed. 

David Burch
Friday, August 20, 2004

An older discussion:
http://discuss.fogcreek.com/CityDesk/default.asp?cmd=show&ixPost=9319&ixReplies=22

Some folks put offending code into variables.

tk
Friday, August 20, 2004

Thanks again guys!  Saved me considerable effort.

_
Friday, August 20, 2004

… and the above once again made me wish that Fog Creek would publish a known bugs list – although I know that they will not. Sad, sad. It would save newcomers so much trouble and frustration.

Jorgen B.
Friday, August 20, 2004

I dunno if this helps anyone, but I found http://www.w3schools.org really useful for all my (X)HTML and CSS learning
was more useful than the W3C

Dave Heath
Saturday, August 21, 2004

Go figure... It leaves the valid htm... er XHTML alone.  This thing is definitely growing on me.

Once more, thanks.

_
Saturday, August 21, 2004

*  Recent Topics

*  Fog Creek Home