Verilog highlighting not selected when Verilog file with file extension sv is opened in UEStudio

Verilog highlighting not selected when Verilog file with file extension sv is opened in UEStudio

2
NewbieNewbie
2

    10:54 - Oct 18#1

    This is a UES question but it is also syntax highlighting question so I was torn as to which section to post in.

    I have a new installation of UEStudio, 2023.1.0.23 64-bit, and have an issue with syntax highlighting.

    I need Verilog highlighting which isn't in the default list after installation, but I was delighted to see that it is supplied as standard.
    I swapped one of the existing wordfiles for the Verilog one using the "Add/Remove Languages" button.

    UES does not select Verilog highlighting when a Verilog file is opened, it has a .sv extension. It just displays everything in black and white.
    I have to choose Verilog manually after loading the file then it displays correctly.
    If I open a C file it correctly selects C highlighting.

    Could I have something wrong in my setup somewhere.

    Mofi
    6,573532
    Grand MasterGrand Master
    6,573532

      16:20 - Oct 18#2

      The user creating and contributing the Verilog syntax highlighting wordfile defined just the case-insensitive interpreted file extensions V and VMD as file extensions for Verilog files.

      Open Advanced - Settings or Configuration - Editor display - Syntax highlighting, select Verilog below Installed wordfiles on not already preselected, click on button Open and close the configuration dialog window with ESC or a click on X symbol.

      Press key END to move the caret to end of the first line and append here a space and the file extension SV. Press Ctrl+S to save the modified wordfile and Ctrl+F4 to close the file. Now all files with file extension sv are automatically syntax highlighted according to the language definition in the modified Verilog syntax highlighting wordfile.

      The color and font style settings can be configured in the Manage Themes dialog window on tab Syntax after selection of Language Verilog. The Manage Themes dialog window is opened by clicking on ribbon tab Layout on second item Themes or in contemporary menu Layout in submenu Themes on first menu item Manage themes or in traditional menu View in submenu Themes on first menu item Manage themes depending on the used interface mode.
      Best regards from an UC/UE/UES for Windows user from Austria

      SSDisk
      2
      NewbieNewbie
      2

        6:51 - Oct 19#3

        Ah! So it was the wordfile that needed changing, not the configuration.
        Thanks for the quick reply. That has done the trick. It's all working now.

        For the Verilog people reading: I googled the file extension and it seems that .V is the older extension and .SV the new one.

        I wasn't aware of the capabilities of themes since I just upgraded from UE version 16 which didn't have them. I will investigate.
        Do the themes override the colors etc of the wordfile? I'm assuming they do.

        Mofi
        6,573532
        Grand MasterGrand Master
        6,573532

          16:35 - Oct 19#4

          The color and font style settings in the wordfile are ignored by UltraEdit for Windows since v20.00 and UEStudio since v14.00. I recommend deleting them from the wordfile. They just cause a little bit longer startup time of UEStudio. I wrote a macro for this job, see my post about the ultimate macros to manage wordfiles and their color settings.

          Each theme file stores the color and font style settings for the syntax highlight languages. That is of course necessary as the colors on tab Editor are used for the document window area of a file and the syntax highlighting colors must fit to these colors too. Using a dark foreground (text) color for syntax highlighting of a color group is not so good on using a theme with a dark color for text background as well as a light syntax highlighting text color is not a good idea on using a light theme.
          Best regards from an UC/UE/UES for Windows user from Austria