ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Free Indent RPG/RPGLE source

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Free Indent RPG/RPGLE source

    This is the 2nd company that i came to that does not have RPG-ALive.


    So this tool will alow you to browse the source with pretty indented lines and search the source and get the item highlighted.

    To view the souce with all lines;
    INDRPG SRCMBR(MYMEMBER) SRCFILE(MYLIB/MYFILE)

    To view the souce with no line comments ( C* F* ....)
    INDRPG SRCMBR(MYMEMBER) SRCFILE(MYLIB/MYFILE) SHOWCOMENT('N')

    I typically add an entry into the QGPL/QAUOOPT file that is used by PDM.

    Option Command
    IR INDRPG SRCMBR(&N) SRCFILE(&L/&F) /* Rpgle indent Source, disp */

    This works for RPG / RPGLE / SQLPRGLE. If you do it on a source that is not one of these, it will just show the source. Also, /Free is not done because you should be indenting that yourself.
    Attached Files
    Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

  • #2
    Re: Free Indent RPG/RPGLE source

    lpex editor does indent automatically. fixed format has a one-click "show Indented Source"

    Comment


    • #3
      Re: Free Indent RPG/RPGLE source

      I know that. But here I can't install any software at all. Noone use Lpex. So no Auto hot key, no crimson editor, the list goes on and on.......
      Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

      Comment


      • #4
        Re: Free Indent RPG/RPGLE source

        I installed the utility but I don't see the colors in the indent.bmp. Is there a special function key for that?

        DAC

        Comment


        • #5
          Re: Free Indent RPG/RPGLE source

          The colors are controled by the color variables in the source.

          PHP Code:
           D blue            C                   const(x'3A')
               
          D blue_reverse    C                   const(x'3B')
               
          D red             C                   const(x'28')
               
          D red_reverse     C                   const(x'29')
               
          D red_under       C                   const(x'2C')
               
          D pink            C                   const(x'38')
               
          D pink_reverse    C                   const(x'3D')
               
          D white           C                   const(x'22')
               
          D white_reverse   C                   const(x'23')
               
          D turq            C                   const(x'30')
               
          D yellow          C                   const(x'32')
               
          D green           C                   const(x'20')
               
          D green_reverse   C                   const(x'21')
               
          D green_under     C                   const(x'24'
          If you left this in there , you should be good to go.
          Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

          Comment


          • #6
            Re: Free Indent RPG/RPGLE source

            NO AUTO HOT KEY!?!?!?! How exactly do you get anything done?

            I would die without mine.
            Your future President
            Bryce

            ---------------------------------------------
            http://www.bravobryce.com

            Comment


            • #7
              Re: Free Indent RPG/RPGLE source

              Originally posted by DeadManWalks View Post
              I know that. But here I can't install any software at all. Noone use Lpex. So no Auto hot key, no crimson editor, the list goes on and on.......
              1. Can you install on a PC? The lpex editor is PC-based.

              2. Are you allowed to use the compiler?

              Comment


              • #8
                Re: Free Indent RPG/RPGLE source

                My post was when I was at a former company.
                Now I'm back to using wdsc and for Seu, I had them buy Rpg-Alive. This is one of the best utilities out there.
                Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

                Comment


                • #9
                  Re: Free Indent RPG/RPGLE source

                  I was surprised, but I didn't even notice this was an old thread. BTW, lpex now has an RPG-Alive type of bracketing for IF/DO loops.

                  Comment


                  • #10
                    Re: Free Indent RPG/RPGLE source

                    I know, but its not interactive. This does not matter as we all write in /Free and indent ourselves right?
                    Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

                    Comment

                    Working...
                    X