Kinook Software Forum

Go Back   Kinook Software Forum > Ultra Recall > [UR] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-05-2014, 01:31 PM
PIMfan's Avatar
PIMfan PIMfan is online now
Registered User
 
Join Date: 02-19-2007
Location: USA
Posts: 12
Syntax coloring for VBA?

Is there any way to have UR show syntax coloring for VBA code? I don't see it listed in the set of supported languages for captured code snippets....
Reply With Quote
  #2  
Old 08-05-2014, 08:51 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
UR will syntax color VBScript code in .vb and .vbs files. For other file extensions, you would need to add the extensions to this line in Editor\Schemas\_VBScript.schclass in the UR installation folder:

lexClass:
parent:file = <*.vb|*.vbs|*.otherext1|*.otherext2>
Reply With Quote
  #3  
Old 08-07-2014, 03:22 PM
PIMfan's Avatar
PIMfan PIMfan is online now
Registered User
 
Join Date: 02-19-2007
Location: USA
Posts: 12
I made the above listed changes and see the code colored in the editor window. However I don't see - unlike other languages like Javascript - code blocks showing the expand/collapse control. Note the difference in the For Next loops in VBA vs. JS....Can this be fixed? Some of my code blocks are big and the collapse button helps alot....:
Attached Images
   
Reply With Quote
  #4  
Old 08-08-2014, 06:01 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Unfortunately, code blocks in VBScript aren't very well defined (unlike { } for Javascript), so the parser of the editing component used by UR can't identify blocks in VBScript code.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 10:32 AM.


Copyright © 1999-2023 Kinook Software, Inc.