Cannot select No Highlighting option (solved)

Cannot select No Highlighting option (solved)

231
Basic UserBasic User
231

    Aug 18, 2017#1

    Hello

    I cannot select the No Highlighting option from the dropdown on the bottom bar or from the Coding tab. Anyone have any ideas? It just reverts to the previously selected option.
    2017-08-18 20_04_42-.png (3.48KiB)

    6,687586
    Grand MasterGrand Master
    6,687586

      Aug 18, 2017#2

      Do you have some more information for us on your problem selecting No highlighting from status bar or the Coding ribbon tab?

      What version of UltraEdit do you use?

      What is the name of the file (file name + extension)?

      Has the file a shebang?

      Would you please compress the entire folder displayed at Advanced - Settings or Configuration - Editor Display - Syntax Highlighting into a ZIP or RAR archive file and upload the archive file to your next post as attachment. If the file opened does not contain confidential data, add the opened file also to the archive. Transact-SQL is definitely not a syntax highlighting language installed with UltraEdit.
      Best regards from an UC/UE/UES for Windows user from Austria

      231
      Basic UserBasic User
      231

        Aug 18, 2017#3

        Hello Mofi

        UE version 24.10.0.24.

        It does not matter which file type I try with, it will not allow the No Highlighting option to be selected.

        ZIP archive file with wordfiles and sample *.sql file deleted by Mofi.

        115
        Power UserPower User
        115

          Aug 18, 2017#4

          Can you change the highlighting to any other language? If so, can you then go from there to No Highlighting?

          231
          Basic UserBasic User
          231

            Aug 18, 2017#5

            I can select another language, although sometimes I have to select it twice before it works. I cannot select No Highlighting no matter which language is selected first.

            I have also just noticed that the language shown on the bar doesn't always correspond to the highlighting currently in use!

            6,687586
            Grand MasterGrand Master
            6,687586

              Aug 19, 2017#6

              Okay, I could reproduce this issue with UE v24.10.0.24 with your *.uew files in wordfiles directory as well as with the standard *.uew files in wordfiles directory.

              This is a bug of UE v24.10.0.24 as I could find out with next public released v24.10.0.32 which does not have this issue. And this issue also does not exist with currently latest public available version 24.10.0.35.

              So the solution is updating UltraEdit. Click on ribbon tab Avanced on Check for updates or download the appropriate UltraEdit installer from UltraEdit Downloads page and run it.

              I looked also on tsql.uew and improved it. Nothing was really wrong. But there was the invalid keyword END-EXEC containing the delimiter - and some duplicate words. a-zA-Z in function string can be optimized to a-z because UltraEdit runs the searches with the regular expression always case-insensitive. And the keywords (and delimiters) are better sorted in improved tsql.uew attached to this post.
              tsql_improved.zip (7.36 KiB)   51
              ZIP file with slightly improved tsql.uew.
              Best regards from an UC/UE/UES for Windows user from Austria

              231
              Basic UserBasic User
              231

                Aug 19, 2017#7

                Thanks Mofi, you are the best.

                It was a standard tsql uew that I installed, so I hope your changes can be made available to other users.

                What a great forum this is.