HighDots Forums  

Go to Column functions?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Go to Column functions? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Maniax_Man
 
Posts: n/a

Default Go to Column functions? - 11-02-2004 , 04:44 PM






I've been working with some XML in which I've used custom tags to remove white
space which cuts file sizes to around half. Now it seems I've stumbled on an
irritating new problem... even in DW MX2004 there is no ability to jump to row.
You would think that since the CFMX engine reports line/column error details
there would be an innate ability for DW to handle a line/column lookup but alas
there is not. Does anyone have/know of a free solution? I


Reply With Quote
  #2  
Old   
darrel
 
Posts: n/a

Default Re: Go to Column functions? - 11-02-2004 , 04:50 PM






Quote:
I've been working with some XML in which I've used custom tags to remove
white
space which cuts file sizes to around half.
Huh?

Quote:
Now it seems I've stumbled on an
irritating new problem... even in DW MX2004 there is no ability to jump to
row.
You would think that since the CFMX engine reports line/column error
details
there would be an innate ability for DW to handle a line/column lookup but
alas
there is not. Does anyone have/know of a free solution? I
XML doesn't really have lines and columns, but rather nodes and
children/parents. Are you asking how to navigate the XML file? My guess is
that you'd want to use some build in XML navigating functions in CF. I don't
use CF, so I can't be more specific, unfortunately.

-Darrel




Reply With Quote
  #3  
Old   
Maniax_Man
 
Posts: n/a

Default Re: Go to Column functions? - 11-02-2004 , 05:29 PM



Quote:
I've been working with some XML in which I've used custom tags to remove
white > space which cuts file sizes to around half. XML has source code. I'm
saying that if I use CF to build an XML document then look at it's file size,
it's larger than if I had created the same document but removed useless
whitespace >Are you asking how to navigate the XML file? No, I know how to
access elements within the file. I've only used XML as in example here. All
I'm asking about is an DW extension perhaps that will allow me to search source
code on a line/column level in addition to the normal line ability. For another
example, Say I have a CF template and I run it but recieve an error. Generally,
CF will tell you there is an error in the Template on line XXX at column XXX.
This does not help me much if line XXX has 50,000 characters. I personally
don't have the time to count 31,764 characters into the line to try and find
what code is broken. A tool that would allow me to 'jump' to line XXX/column
XXX would save tons of time.



Reply With Quote
  #4  
Old   
darrel
 
Posts: n/a

Default Re: Go to Column functions? - 11-02-2004 , 05:40 PM



Quote:
I've been working with some XML in which I've used custom tags to remove
white > space which cuts file sizes to around half. XML has source code.
I'm
saying that if I use CF to build an XML document then look at it's file
size,
it's larger than if I had created the same document but removed useless
whitespace
Oh. Gotcha.

Quote:
I'm asking about is an DW extension perhaps that will allow me to search
source
code on a line/column level in addition to the normal line ability.
Not that I know of.

BTW, is the loss of white space really worth it? Of all the ways to conserve
file size, I tend not to put stripping whitespace way at the bottom. The
loss of human-readable code just isn't worth it IMHO.

Quote:
For another
example, Say I have a CF template and I run it but recieve an error.
Generally,
CF will tell you there is an error in the Template on line XXX at column
XXX.
This does not help me much if line XXX has 50,000 characters. I personally
don't have the time to count 31,764 characters into the line to try and
find
what code is broken.
Exactly. That's why I'm suggesting you not remove the whitespace to begin
with. It's just a giant PITA during development.

Perhaps, if you really want to, before final upload, you run a white-space
stripper on a COPY of the files and upload those...that way the final files
are slim, but you still have your readable/searchable files to work from.

-Darrel




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.