Markdown automatically detects which programming language your code is written in and highlights the syntax. You can force the language selection by putting the language name wight after the ```
```verilog
```vhdl
```text
Note that Verilog is also used for SystemVerilog.
You can also select the text you want to codify first, then click the </> button on the toolbar above the text editing pane.
Why don’t we have our own editors which helps us to write our verification code?
since we move-in in the direction of software, why don’t we have editor which helps us on syntax and formatting.
Letz says, in JAVA developers have editors (which has intelligence), which brings the skeleton of the code and gives suggestions on syntax and highlights the errors when during coding itself.
We are not lesser than software developers. We are writing codes more than designers do.
Mentor has tools that help you write and analyze your verification source code. It understands class inheritance and has template generators to help you write your code (e.g. adds the proper constructors and factory registration to your o/uvm_objects and phase methods to your o/uvm_components). There are a number of tools available from other vendors to help you write your code.
Formatting code for posting in a web forum is a different issue. What I usually do is write the code in an editor that formats the code for me, copy&paste it into the post composing text box, then mark that as a code block using the little <> icon above the text box.