Upper case keywords

Syntax highlighting, code folding, brace matching, code indenting, and function list

Upper case keywords

Postby jboschee » Tue May 17, 2005 2:37 pm

Is there a way to force keywords to a specific case. Specifically, I am using SQL and matching braces do not work well unless the case matches (e.g. BEGIN END)
User avatar
jboschee
Newbie
 
Posts: 1
Joined: Thu Jul 21, 2005 11:00 pm

Re: Upper case keywords

Postby mary.vivit » Wed May 18, 2005 1:20 pm

Good day, luzzel. I've had consistent results by doing the following:
- Ensure the commands in the SQL block of your wordfile.txt are in uppercase.
- Remove any Nocase in the SQL language definition block.
- In the Syntax Highlighting tab, select the SQL language and enable Auto Correct Keywords.

There might be another way, but I've not found it.
User avatar
mary.vivit
Basic User
Basic User
 
Posts: 35
Joined: Tue Nov 23, 2004 12:00 am

Re: Upper case keywords

Postby mspeedie » Wed May 31, 2006 3:00 pm

I tried that but it does not seem to be working since I upgraded from version 10 to 12.
User avatar
mspeedie
Newbie
 
Posts: 1
Joined: Tue May 30, 2006 11:00 pm

Re: Upper case keywords

Postby Mofi » Thu Jun 01, 2006 5:03 am

Auto Correct Keywords works also in v12. But Auto Correct Keywords only correct the keywords while entering it. Existing wrong written keywords are not corrected.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4042
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Upper case keywords

Postby perl_geek » Thu Jul 19, 2007 7:50 am

My problem with PL/SQL is how to get words changed automatically to upper-case when they don't begin with a space.

I have inserted the word FIRST into the /C1 STYLE_KEYWORD section under PL/SQL in my WORDFILE.txt file.

If i type in p_evq_models first (a space before the word 'first') this gets converted to p_evq_models FIRST.

However, if i type in p_evq_models.first the 'first' stays as it is. The dot. before the word seems to stop the automatic upper-case working. Is there any way around this?

Thanks
User avatar
perl_geek
Basic User
Basic User
 
Posts: 11
Joined: Tue Jul 04, 2006 11:00 pm

Re: Upper case keywords

Postby Mofi » Thu Jul 19, 2007 1:30 pm

You can add character '.' to /Delimiters =

But you must know that now a string like p_evq_models.first is interpreted as 3 words as indicated by the 3 colors.

You should use my macro TestForInvalid to verify, if there are any invalid keyword definitions in the wordfile after adding '.' to the delimiters.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4042
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Upper case keywords

Postby perl_geek » Fri Jul 20, 2007 7:53 am

Yes I thought about that Mofi and tried it before I posted but it still leaves '.first' in lower-case :(
User avatar
perl_geek
Basic User
Basic User
 
Posts: 11
Joined: Tue Jul 04, 2006 11:00 pm

Re: Upper case keywords

Postby Mofi » Fri Jul 20, 2007 8:05 am

You are right. Please uncheck option Do not auto-complete structure members (items following "." or "->") at Configuration - Editor - Auto-complete and then UltraEdit will not treat everything after a '.' or '>' as structure or class element which should not be automatically corrected.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4042
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Syntax Highlighting