Verilog BraceMatch

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
banjo

Verilog BraceMatch

Post by banjo »

Is it possible to add to the BraceMatch list? Verilog uses the words "begin" and "end". Most editors cannot handle these for "matching the braces".

Thanks.

--- Steve
Guest

Post by Guest »

Hi Steve,

To do this you need to do the following:
  1. Create a Verilog document type
  2. Change to the templates section of the document type
  3. Add begin to the brace prefix string
  4. Add end to the brace postfix string
  5. Apply the changes[/b]
Now if you have code that looks like something this:

Code: Select all

if something
begin
     something else
end
placing the cursor on the begin or end words and using the Edit Find Matching Brace should see the cursor move to the matching brace.

Also if you enter something like this:

Code: Select all

if something
begin<-- cursor here
hitting the enter key should see Zeus auto brace the code to look like this:

Code: Select all

if something
begin
      <-- cursor now here
end
Finally, Zeus currently does not have support for Verilog code folding but if you create a Verilog language specification this feature could also be added.

Cheers Jussi
Post Reply