Tapatalk

BASIC - 80 char lines continuation character

BASIC - 80 char lines continuation character

3
NewbieNewbie
3

    Mar 09, 2005#1

    I am using UE for MAI Basic files. Due to limitations in the environment I need to limit the lines to only 80 chars and the ":" colon is the continuation character. How do I set this in the configuration file?
    Thanks, ginger

    63
    Advanced UserAdvanced User
    63

      Mar 10, 2005#2

      Hi Ginger

      You asked a very interesting question!

      I've got some suggestions but please don't think this is the only way!

      First off you got my curiousity up, so I did a search on MAI Basic, interesting.

      Okay here goes:
      1) "Set Column Marker" under "View" pull down menu, to 79
      "Show Column Marker 1" or "2", which ever one you set.
      This will put a big vertical line in column 80!

      2) Turn Column mode on
      a) click on column tool bar icon or
      a) pull down menu "Column" --> "Column mode" or Alt C
      b) hit the space bar to move the cursor to column 80, hold down the return key to enter a bunch of CR/LF's, move the cursor back to the first line, in column 80!!!
      c) hold down the shift key and move the arrow key down, what ever amount of lines you need
      d) type a colon, that should put a ":" in column 80 all the way down what ever number lines you selected.
      e) turn insert off, you will be in "Over Type" mode. That so you don't push the colon past colomn 80. "Insert" key is on the keyboard
      f) I don't like entering source in "Column Mode" so I turn it off. Column Mode is a toggle (On or Off).
      But this is a personal call, have fun playing!


      3) I don't like this one but it's a option
      a) Pull down menu "Advanced" --> "Configuration..."
      b) Click on tab "Edit"
      c) Down at the bottom is "Wrap Method"
      d) I'm thinking, radio button "Wrap after column #, insert CR/LF)"
      e) "Wrap Column #" fill in the box with 80
      Okay just thought of another variation
      e) "Wrap Column #" fill in the box with 79
      Then do #2, a thur d in column 80

      Well Ginger that's a start!
      Hey some things that will help a lot if you toggle "Display Ruler" ON under "View" menu also under "Advanced" --> "Configuration" "General" tab
      Look down for "Display", Start ruler numbering at column 1

      Next is a feature I use a lot! Pull down menu "View" --> "Show Spaces/Tabs" Once you display this, you can quickly see if you go past column 80!
      As much as I like this feature, I generally turn it off after I've seen what I need to see. But here again this is a matter of personal taste, have fun playing!

      This was a great question!
      Good Luck
      Fire back if you have more questions

      3
      NewbieNewbie
      3

        Re: BASIC - 80 CHARS LINES CONTINUATION CHARACTER

        Mar 10, 2005#3

        MrBillG,

        Thank you so much for your great reply. The wrap method is working fine, but the continuation character belongs in the subsequent line. For example:

        0050 REM This is a comment
        0050:this is the next comment line.

          Mar 10, 2005#4

          MrBillG,

          Thank you so much for your great reply. The wrap method is working fine, but the continuation character belongs in the subsequent line. For example:

          0050 REM This is a comment
          0050:this is the next comment line.

          Two things I wish I can do:

          1) As I finish typing on column 80, UE wraps to the next, adds the new line number followed by the ":" colon and my typing continues in that new column. The colon position is variable, it may go in column 5 line, as you see from my example, but it can go in other columns as well. I know this may be too much to ask...

          2) At least, I would like UE to recognize the colon that follows the line number as the continuation character so that when Syntax Highlighting acts on the first line 0050 it does it on the continuation of that line as well. In other words, in my UE I want the two lines in my example to follow the different color set for the comments.

          Thanks again!

          ginger

          63
          Advanced UserAdvanced User
          63

            Mar 10, 2005#5

            Hi Ginger

            Did anyone ever tell you, you ask great questions?

            1) I hope someone helps me out here!
            But this is my take on one way to accomplish this, a simple macro.
            Here's how I see the macro solving your problem.
            a) when your at the end of a line that will continue on to the next the macro will move HOME
            b) copy the first 4 characters, your line numbers in this case (hold the shift key down and arrow to the right than COPY)
            c) move to END
            d) key a RETURN
            e) PASTE your line numbers
            f) key ":" colon
            and your ready to start typing on that line.

            Now save this macro out with a name.
            Than assign the macro to a key sort like Return maybe Shift Return?

            UltraEdit make this very easy because you can record your keystrokes.
            And then stop your recording. Does that sound like that would work?

            2) Is a little tougher, actually it would of been real easy to answer prior to version 11. Can't be done! But in version 11. some languages have muilt line highlighting.

            If I can make a recommendation hold off on this!
            It might get fixed in the next release or not! (version 11.00b)
            Version 11.00 has been a interesting release, don't make me go there!!!

            I'll work on the macro but it should be pretty simple and you'll learn macros.

            Let me know if this works and maybe someone else will have a idea!

            Here is my first take at your macro

            InsertMode
            ColumnModeOff
            HexOff
            UnixReOff
            Key HOME
            StartSelect
            Key RIGHT ARROW
            Key RIGHT ARROW
            Key RIGHT ARROW
            Key RIGHT ARROW
            Copy
            EndSelect
            Key END
            "
            "
            Paste
            ":"