April 28, 2024, 03:49:03 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Update 12-30-2011

Started by LarryMc, December 30, 2011, 10:07:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LarryMc

Completed the code for auto indentation.
The current IDE has auto indentation.  When the user presses ENTER the next line is automatically indented to the same level as the line just left.

I took it one step farther. If the previous had one of the following words as the first words on the line the following line will be indented to one more level. (as shown in the attached image.

If you notice a keyword I have omitted let me know.

QuoteIF
IFELSE
ELSE
SELECT
CASE
CASE&
FOR
DO
WHILE
ENUM
TYPE
SUB
GLOBAL SUB
UNION
INTERFACE
CLASS
TRY
CATCH
DATABEGIN
BEGINMENU
MENUTITLE
BEGINPOPUP
BEGININSERTMENU

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Brian

You DO you like your indenting, Larry!

Brian