Auto replace/ correct keywords after typing possible?

Auto replace/ correct keywords after typing possible?

3
NewbieNewbie
3

    Nov 21, 2005#1

    Hi all,

    I'm a complete beginner in using UltraEdit and need to ask a stupid uneducated question:

    How do I achieve some auto replace functionality using UltraEdit?

    While coding I would like to get some keywords automatically transformed into upper case, e.g. begin --> BEGIN.

    I'm very much used to this functionality since I was using Toad before where it was quite easy to achieve something like that. In toad is was possible to specify a file where all these code replacements where stored. Does something similar exist in UltraEdit as well? I got the impression since the "Auto correct keywords" option on the tab Syntax Highlighting / Advanced menu --> Configuration is indication something like that. But I'm to stupid to figure out how it's supposed to work and browsing the help didn't make me wiser :-((

    Does anyone have the patience to drop me a line how to achieve this little functionality?

    MANY thanks in advance, have a good day,
    Pierre

    344
    MasterMaster
    344

      Nov 21, 2005#2

      Hi Pierre,

      there is a tab called Syntax Highlighting. From within this tab the used wordfile wordfile.txt can be opened.
      In this file you configure languages and how they are displayed.
      If you tell UE that your language is case-sensitive, all typed words that are defined upper case are converted to upper case automatically.

      Example:

      /L7"PL/SQL" . . .
      . . .
      /C1"Keywords"
      ABORT ACCEPT ACCESS ADD ALL
      . . .

      The line starting with /Lx must NOT contain the case-sensitive keyword Nocase.

      rds Bego
      Normally using all newest english version incl. each hotfix. Win 10 64 bit

      3
      NewbieNewbie
      3

        Nov 21, 2005#3

        Hi Bego,

        first of all: many many thanks for your quick reply! I had a look into the file you mentioned - but for some reason PL/SQL doesn't exist in there! Do I have to load the language and all it settings from some language library somehow or do I have to code everything manually?

        I tried the coding option (looking at other languages defined in my wordfile.txt), but for sure I didn't work. I might be missing some mandatory setting sin there that I'm not aware of.

        Can you help out here as well?

        Many thanks again!
        Pierre

          Nov 21, 2005#4

          Hi Bego,

          first of all: I've found a way to get it working now (thanks to your advice!). BUT: It doesn't react on all keywords defined by me, e.g.:

          Code: Select all

          alter TABLE edit replace when WHERE while LOOP
          All of them have been listen (in upper case :-) ) in the file wordfile.txt

          Do you have any ideas about that? Am I restricted to some keywords?

          Many thanks to all of you out there!
          Pierre

          6,683583
          Grand MasterGrand Master
          6,683583

            Nov 21, 2005#5

            If the language definition line does not contain the word Nocase the syntax highlighting for this language is case-sensitive.

            Code: Select all

            NoCase - unknown keyword - language is case-sensitive
            NOCASE - unknown keyword - language is case-sensitive
            nocase - unknown keyword - language is case-sensitive
            Case   - unknown keyword - language is case-sensitive
                   - missing keyword - language is case-sensitive
            Nocase - correct keyword - language is not case-sensitive
            Your keywords must be sorted according to the case specification correctly. Use my macro SortLanguage from the ultimate syntax highlighting tools to sort the language and run also TestForDuplicate and TestForInvalid for verification of the words of the language.
            Best regards from an UC/UE/UES for Windows user from Austria

            344
            MasterMaster
            344

              Nov 21, 2005#6

              Oh yes :oops: , should have known better - but I was in a hurry this morning. Just leave the Nocase away.

              I think you found out the place where you can download the wordfiles or did you type them?

              rds bego
              Normally using all newest english version incl. each hotfix. Win 10 64 bit