需要将代码段写入Wordpress网站。在此, 代码段需要突出显示代码的关键字。当前, 使用的语言是Verilog。需要有关如何使用WordPress插件或主题修改突出显示任何语言的任何代码关键字的解决方案。
#1
我建议使用像Hugo这样的静态网站生成器。默认情况下, 它使用Chroma进行语法突出显示, 并且其中支持(System)Verilog。
你只需在Markdown中将代码块编写为:
```systemverilog
`timescale 1ns/1ps
module top;
initial begin
$timeformat(-9, 3, " ns", 11);
#10.1;
$display("[%t] Hello", $realtime);
$finish;
end
endmodule : top
```
来源:
https://www.srcmini02.com/63728.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_41698.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57