7 Replies Latest reply on Jan 4, 2009 7:46 AM by Newsgroup_User

    Pasting Text as Fixed-Width Without Losing Formatting

    Level 7
      I'm trying to paste ASCII art in Dreamweaver.

      I tried various methods and settings for Paste Special, but I was unable to
      get the following text file to paste into dreamweaver without totally
      destroying the looks of it, no matter how I adjusted the settings:

      http://home.earthlink.net/~matthaeus/misc/bbdd02_fire.txt

      I did that to try to figure out what the heck kind of site this is. I
      ROT-13 encoded the link since it contains a word that some people might not
      like, but I've really found nothing on the site that is actually racist.
      It's an esoteric site run by some guy who "knows everything":

      uggc://avttrejvfr.pbz/g1r.ugzy

      Essentially I want to find out how to create ASCII art in Dreamweaver that
      I've already created in UltraEdit that has a Column Editor, as well as
      setting to allow positioning of the cursor beyond the end of the line. This
      helps speed up the creation of ASCII art dramatically.

      I want to set up a website that looks a lot like the old BBS interfaces with
      the black background, colored text, etc..., but doing this in Dreamweaver
      with a lot of non-breaking spaces makes for a lot of page bloat on a site
      that's supposed to be text-based, very fast, colorful, and fun to explore.

      Here's an example I just threw together for this post:

      http://home.earthlink.net/~matthaeus/exp.html

      Hmmm. Already there's an alignment problem I can't seem to track down.
      Getting HTML to work with this might be more of a challenge than I'm willing
      to commit to.

      That HTML just doesn't support regular spaces outright is annoying. A
      column editor with text coloring would be ideal, that could then be exported
      to HTML.

      Damaeus
        • 1. Re: Pasting Text as Fixed-Width Without Losing Formatting
          Level 7
          Reading from news:macromedia.dreamweaver,
          Damaeus <no-mail@hotmail.invalid> posted:

          > I'm trying to paste ASCII art in Dreamweaver.

          And I forgot to mention I'm using Dreamweaver 8.

          Damaeus
          • 2. Re: Pasting Text as Fixed-Width Without Losing Formatting
            Level 7
            On Thu, 01 Jan 2009 17:01:00 -0600, Damaeus <no-mail@hotmail.invalid>
            wrote:

            >That HTML just doesn't support regular spaces outright is annoying.

            HTML does, in fact, support regular spaces using the <pre> preformatted
            tag. I've not seen an easy way to paste your ASCII art into design view,
            but flip over to code view, type <pre>, hit the Enter key, paste, then
            type </pre>.

            Gary
            • 3. Re: Pasting Text as Fixed-Width Without Losing Formatting
              Level 7
              Beleive it or not, I use ascii for knitting and crochet patterns, but that's
              another story. I wouldn't have the patience to build a site this way.
              Following is an example of ascii art code (nothing really) that works in DW.

              <table border = "0">
              <tr>
              <td nowrap>
              <pre>
              ******************************************<br>
              ==========================================<br>
              ******************************************<br>
              //////////////////////////////////////////<br>
                           
              :-)<br>
              \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\<br>
              888888888888888888888888888888888888888888<br>
              ..........................................<br>
              ******************************************
              </pre>
              </td>
              </tr>
              </table>

              Have fun!!!
              --
              Nancy O.
              Alt-Web Design & Publishing
              www.alt-web.com


              • 4. Re: Pasting Text as Fixed-Width Without Losing Formatting
                Level 7
                Reading from news:macromedia.dreamweaver,
                Gary White <reply@newsgroup.please> posted:

                > HTML does, in fact, support regular spaces using the <pre> preformatted
                > tag. I've not seen an easy way to paste your ASCII art into design view,
                > but flip over to code view, type <pre>, hit the Enter key, paste, then
                > type </pre>.

                Ah, that works beautifully, and I don't even have to use tables, really, to
                lay it all out. I can just let it nest up against the left side of the page
                and let people zoom in and out to make the text as big or small as they
                want. I think this is one type of page that you'd HAVE to use a WYSIWYG
                editor. The page source is just too sloppy. It just gets tedious, though,
                highlighting characters one by one in a vertical row in Dreamweaver. Now if
                they had the ability to select a column of characters, I could select the
                whole vertical row at once instead of one-by-one.

                http://home.earthlink.net/~matthaeus/ascii.html

                Damaeus
                • 5. Re: Pasting Text as Fixed-Width Without Losing Formatting
                  Level 7
                  Reading from news:macromedia.dreamweaver,
                  "Nancy O" <nancyoshea1@NOSPAMatt.net> posted:

                  > Beleive it or not, I use ascii for knitting and crochet patterns, but that's
                  > another story. I wouldn't have the patience to build a site this way.

                  I don't know if I will, either. I'll have to use CSS to keep the hyperlinks
                  from being underlined, but then you'd be required to know what's a link
                  simply by recognizing a menu item when you see it. I don't know how other
                  people browse, but usually if I don't see a hand cursor over an item, or an
                  underscore, I won't see it as a link.

                  I probably won't do this too seriously, but I was just interested in it as a
                  time killer.

                  Here's an experiment I did with that other guy's suggestion of using
                  <pre></pre> to preserve plain text formatting.

                  http://home.earthlink.net/~matthaeus/ascii.html

                  And since many FAQs are written in plain text, it might be fun to color them
                  some just for the hell of it and make them into HTML files that still look
                  like plain text.

                  Damaeus
                  • 6. Re: Pasting Text as Fixed-Width Without Losing Formatting
                    Level 7
                    On Thu, 01 Jan 2009 20:36:55 -0600, Damaeus <no-mail@hotmail.invalid>
                    wrote:

                    >Now if
                    >they had the ability to select a column of characters, I could select the
                    >whole vertical row at once instead of one-by-one.

                    That's one of the reasons we keep UltraEdit around. ;-)

                    Gary
                    • 7. Re: Pasting Text as Fixed-Width Without Losing Formatting
                      Level 7
                      Reading from news:macromedia.dreamweaver,
                      Gary White <reply@newsgroup.please> posted:

                      > On Thu, 01 Jan 2009 20:36:55 -0600, Damaeus <no-mail@hotmail.invalid>
                      > wrote:
                      >
                      > >Now if
                      > >they had the ability to select a column of characters, I could select the
                      > >whole vertical row at once instead of one-by-one.
                      >
                      > That's one of the reasons we keep UltraEdit around. ;-)

                      I thought about trying to insert the code with UltraEdit for coloring the
                      text, but I didn't think it would do that, especially without messing up
                      what I'm already seeing. I'll check to see if there's a way. I don't think
                      code folding will do it.

                      Damaeus