Use UltraEdit25.20.0.88 to edit and configure Verilog language (detailed)

UltraEdit version is 25.20.0.88, other versions are also applicable.

1: Download the syntax highlighting file of Verilog.
It can support the corresponding language editing, and the keywords will be marked with different colors.
You can go to the official website to download, including hundreds of grammar files, I think it should be able to meet everyone's needs!
https://www.ultraedit.com/downloads/extras/wordfiles.html
can also be downloaded from the link below, it has been set up, you can skip steps 2,3,4: https://download.csdn.net/ download/qq_33231534/12243453

2: Use UltraEdit to open the downloaded file and change the L20 in the first line to L14, because UltraEdit only supports 20 kinds of syntax.

3: Add the folding function
Because Verilog HDL blocks are generally marked with begin and end as the beginning and end, their function is equivalent to
the braces of the C language . Add the following code in verilog2001.uew:

/Open Fold Strings = "begin""case"
/Close Fold Strings = "end""endcase"


Just place it above /C1"Keywords".
In addition to begin and end can be folded, another pair of case and endcase can also be folded. In the same
way, you can add the folding flags you need.

4: Add the automatic indentation function
Also in wordfile.txt, there is a grammar to control the automatic indentation. The so-called automatic indentation means that when you enter begin and press Enter, a tab is automatically added to the next line; when you enter end, a tab is automatically returned to the next line. Users can add different indentation words to realize automatic indentation. Such as:

/Indent Strings = "begin""case""fork" "if" "else"
/Unindent Strings = "end""endcase""join" "else"


Just place it above /C1"Keywords".

5: Open the file with UltraEdit , the first line = (* Block Comment Off Alt = *) and delete the text, otherwise the content after writing Verilog syntax always@(*) will be commented.

6: You can also add some other custom functions, such as function call function, you can explore it yourself.

7: Place the downloaded file verilog2001.uew under wordfiles in the software directory, restart the software to open it and it will be OK.
Wordfiles directory search method:
     (1) Open UltraEdit->Advanced->Settings


         (2) Right navigation bar -> editor display -> syntax highlighting -> the full directory name of the document

 

 

 

 

Guess you like

Origin blog.csdn.net/qq_33231534/article/details/104813325