RE: Code400 & parsing of .bas source & the underscore "_" charact er

Don Brubaker <[email protected]>
Newsgroups gmane.comp.systems.as400.code
Message-ID <F3B4ECBAE3E454458EB0D2321F2A9EED2E37AD@jaxexc1>
Thanks John, that is exactly what I needed.

-----Original Message-----
From: John Larimer [mailto:[email protected]] 
Sent: Tuesday, August 26, 2003 9:13 AM
To: code400-l-Zwy7GipZuJhWk0Htik3J/[email protected]
Subject: RE: Code400 & parsing of .bas source & the underscore "_" charact
er

Don:

What I think is happening is the parser is flagging underscores as errors.  
I don't know how to change the parser but you could change the attributes 
applied to errors.

Click on 'Options' 'Profiles' 'Language Load' to open the file bas.lxl.

Change the error attributes to something like blue/yellow.

Save your modified version as bas.lxu.  Now both profiles will be loaded 
when you open a .bas document.  Your modified version will override the 
original.

Good Luck!

John

>From: Don Brubaker <[email protected]>
>Reply-To: CODE/400 Discussion & Support <code400-l-Zwy7GipZuJhWk0Htik3J/[email protected]>
>To: "'CODE/400 Discussion & Support'" <code400-l-Zwy7GipZuJhWk0Htik3J/[email protected]>
>Subject: RE: Code400 & parsing of .bas source & the underscore "_" charact 
>er
>Date: Mon, 25 Aug 2003 13:54:24 -0400
>
>
>Thanks but, I want Code/400 to parse the basic source code using the .BAS
>profile. The problem is that the underscore character is not parsed
>correctly. The string "CONSTANT_MATH_PI" is displayed with the underscore 
>as
>a different color (red background, white foreground). I would like to get
>the "red blocks" out of the constant names!
>
>
>-----Original Message-----
>From: John Larimer [mailto:[email protected]]
>Sent: Monday, August 25, 2003 12:21 PM
>To: code400-l-Zwy7GipZuJhWk0Htik3J/[email protected]
>Subject: Re: Code400 & parsing of .bas source & the underscore "_" 
>character
>
>Don:
>
>After the file is loaded, you can change the profile being used by clicking
>on 'Options' 'Change Profile' and then selecting the profile you want to 
>use
>
>from the drop down list.  The profile 'dft' does not have any token
>highlighting.
>
>Review the help from the Change Profile form you will find additional
>information on modifying the profiles.
>
>John
>
>
> >From: Don Brubaker <[email protected]>
> >Reply-To: CODE/400 Discussion & Support <code400-l-Zwy7GipZuJhWk0Htik3J/[email protected]>
> >To: "'code400-l-Zwy7GipZuJhWk0Htik3J/[email protected]'" <[email protected]>
> >Subject: Code400 & parsing of .bas source & the underscore "_" character
> >Date: Mon, 25 Aug 2003 11:23:47 -0400
> >
> >I would like to change color attribute of the underscore character "_" in
> >the BAS language profile.
> >
> >
> >
> >I am using Code to work on some Client Access 5250 "macros" which start 
>out
> >life as VBScripts. When I define constants like "USE_THIS_STRING", the
> >underscore charter shows up as white on a red background. Very confusing
> >and
> >hard to read. The rest of the characters in the constant name (USE, THIS,
> >STRING) have normal coloration, blue on white background. I have also
> >noticed that "[" and "&" characters are displayed white on red.
> >
> >
> >
> >Thanks for any help, Don.
> >
> >
> >
> >_______________________________________________
> >This is the CODE/400 Discussion & Support (CODE400-L) mailing list
> >To post a message email: CODE400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
> >To subscribe, unsubscribe, or change list options,
> >visit: http://lists.midrange.com/mailman/listinfo/code400-l
> >or email: CODE400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
> >Before posting, please take a moment to review the archives
> >at http://archive.midrange.com/code400-l.
> >
> >NOTE: WDSc for iSeries disucssion has it's own mailing list.
> >Information can be found at
> >http://lists.midrange.com/cgi-bin/listinfo/wdsc-l
> >
>
>_________________________________________________________________
>Enter for your chance to IM with Bon Jovi, Seal, Bow Wow, or Mary J Blige
>using MSN Messenger http://entertainment.msn.com/imastar
>
>_______________________________________________
>This is the CODE/400 Discussion & Support (CODE400-L) mailing list
>To post a message email: CODE400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
>To subscribe, unsubscribe, or change list options,
>visit: http://lists.midrange.com/mailman/listinfo/code400-l
>or email: CODE400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
>Before posting, please take a moment to review the archives
>at http://archive.midrange.com/code400-l.
>
>NOTE: WDSc for iSeries disucssion has it's own mailing list.
>Information can be found at
>http://lists.midrange.com/cgi-bin/listinfo/wdsc-l
>_______________________________________________
>This is the CODE/400 Discussion & Support (CODE400-L) mailing list
>To post a message email: CODE400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
>To subscribe, unsubscribe, or change list options,
>visit: http://lists.midrange.com/mailman/listinfo/code400-l
>or email: CODE400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
>Before posting, please take a moment to review the archives
>at http://archive.midrange.com/code400-l.
>
>NOTE: WDSc for iSeries disucssion has it's own mailing list.
>Information can be found at 
>http://lists.midrange.com/cgi-bin/listinfo/wdsc-l
>

_________________________________________________________________
Enter for your chance to IM with Bon Jovi, Seal, Bow Wow, or Mary J Blige 
using MSN Messenger http://entertainment.msn.com/imastar

_______________________________________________
This is the CODE/400 Discussion & Support (CODE400-L) mailing list
To post a message email: CODE400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/code400-l
or email: CODE400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/code400-l.

NOTE: WDSc for iSeries disucssion has it's own mailing list.
Information can be found at
http://lists.midrange.com/cgi-bin/listinfo/wdsc-l
_______________________________________________
This is the CODE/400 Discussion & Support (CODE400-L) mailing list
To post a message email: CODE400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/code400-l
or email: CODE400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/code400-l.

NOTE: WDSc for iSeries disucssion has it's own mailing list.
Information can be found at http://lists.midrange.com/cgi-bin/listinfo/wdsc-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.