在wim7下安装了ultraedit,用来编辑verilog时看上去都是灰灰的,于是google了一下,发现只要把一段模板放在wordfile文件里就可以了,但是把模板代码放入ultraedit下安装目录中的 wordfilet中后打开verilog还是没有语法高亮显示。于是自己看了下configuration里面的设置,果然被我发现在syntax highlighting 里面有设置wordlist文件的路径,根本不是安装路径下的那个wordfile,把模板代码放入正确的文件果然有语法高亮了。打开ultraedit,查看高级/配置/编辑器显示/语法高亮,就可以看到正确目录了。还要注意的是,wim7 下C盘的appdata文件夹默认隐藏的,所以直接搜索C:\Users\asus\AppData就可以找到。QQ截图未命名.png
下面贴一下模板代码,放入wordfile的最后面就可以了,中第一行L后面的数字代表序号,要保证新添加的值是最大的,比如上一个L后面是13,那你添加的就写成14,如果以后还有新的格式就写成15,如此类推。wordfile里的文件都是.uew文件。
/L14″Verilog 1364-2001″ Line Comment = // Block Comment On = /* Block Comment Off = */ String Chars = ” File Extensions = V VL VMD
/Delimiters = ~!@%^&*()-+=|\/{}[]:;”<> , .?#
/Function String = “%[a-z0-9]+[ ^t]+[a-z_0-9]+[ ^t]+(”
/Indent Strings = “begin” “fork” “specify” “config“
/Unindent Strings = “end” “join” “endspecify” “endconfig”
/C1″Keywords”
always and assign automatic
begin buf bufif0 bufif1
case casex casez cell cmos config
deassign default defparam design disable
edge else end endcase endconfig endmodule endfunction endgenerate endprimitive endspecify endtable endtask event
for force forever fork function
generate genvar
highz0 highz1
if ifnone initial inout input instance integer
join
large liblist library localparam
macromodule medium module
nand negedge nmos none nor noshowcancelled not notif0 notif1
or output
parameter pulsestyle_onevent pulsestyle_ondetect pmos posedge primitive pull0 pull1 pullup pulldown
real realtime reg release repeat rcmos rnmos rpmos rtran rtranif0 rtanif1
scalared showcancelled signed small specify specparam strength strong0 strong1 supply0 supply1
table task time tran tranif0 tranif1 tri tri1 tri0 triand trior trireg
use
vectored
wait wand weak0 weak1 while wire wor
xnor xor
/C2″System”
** ‘b ‘B ‘o ‘O ‘d ‘D ‘h ‘H ’sb ’sB ’so ’sO ’sd ’sD ’sh ’sH ‘Sb ‘SB ‘So ‘SO ‘Sd ‘SD ‘Sh ‘SH
** _
$async$and$array $async$and$plane $async$nand$array $async$nand$plane $async$nor$array $async$nor$plane $async$or$array $async$or$plane
$bitstoreal
$countdrivers
$display $displayb $displayh $displayo
$dist_chi_square $dist_erlang $dist_exponential $dist_normal $dist_poisson $dist_t $dist_uniform
$dumpall $dumpfile $dumpflush $dumplimit $dumpoff $dumpon $dumpportsall $dumpportsflush $dumpportslimit $dumpportsoff $dumpportson $dumpvars
$fclose $fdisplayh $fdisplay $fdisplayf $fdisplayb $ferror $fflush $fgetc $fgets $finish $fmonitorb $fmonitor $fmonitorf $fmonitorh $fopen $fread $fscanf $fseek $fsscanf $fstrobe $fstrobebb $fstrobef $fstrobeh $ftel $fullskew $fwriteb $fwritef $fwriteh $fwrite
$getpattern
$history $hold
$incsave $input $itor
$key
$list $log
$monitorb $monitorh $monitoroff $monitoron $monitor $monitoro
$nochange $nokey $nolog
$period $printtimescale
$q_add $q_exam $q_full $q_initialize $q_remove
$random $readmemb $readmemh $readmemh $realtime $realtobits $recovery $recrem $removal $reset_count $reset $reset_value $restart $rewind $rtoi
$save $scale $scope $sdf_annotate $setup $setuphold $sformat $showscopes $showvariables $showvars $signed $skew $sreadmemb $sreadmemh $stime $stop $strobeb $strobe $strobeh $strobeo $swriteb $swriteh $swriteo $swrite $sync$and$array $sync$and$plane $sync$nand$array $sync$nand$plane $sync$nor$array $sync$nor$plane $sync$or$array $sync$or$plane
$test$plusargs $time $timeformat $timeskew
$ungetc $unsigned
$value$plusargs
$width $writeb $writeh $write $writeo
/C3″Operators”
->
+:
-:
@
@*
*>
,
;
{
}
+
-
// /
*
**
%
>
>=
>>
>>>
<<br /> <=
<<
<<<<br /> !
!=
!==
&
&&
|
||
=
==
===
^
^~
~
~^
~&
~|
?
:
/C4″Directives”
** `
`accelerate `autoexepand_vectornets
`celldefine
`default_nettype `define `default_decay_time `default_trireg_strength `delay_mode_distributed `delay_mode_path `delay_mode_unit `delay_mode_zero
`else `elsif `endcelldefine `endif `endprotect `endprotected `expand_vectornets
`file
`ifdef `ifndef `include
`line
`noaccelerate `noexpand_vectornets `noremove_gatenames `noremove_netnames `nounconnected_drive
`protect `protected
`remove_gatenames `remove_netnames `resetall
`timescale
`unconnected_drive `undef `uselib
/C5″DelaysAndParameters”
#
/Open Fold Strings = “begin”"case”
/Close Fold Strings = “end”"endcase”
/Indent Strings = “begin”"case”"fork” “if” “else”
/Unindent Strings = “end”"endcase”"join” “else”
文章评论(0条评论)
登录后参与讨论