Word2007 is used in this article. You can use the following methods to view information online:
1. Insert a table with one row and one column, write the code in it, and select the table;
2. Change the style to "HTML code ".
In fact, only the HTML style in Word is applied, and the background of the table can be changed to "5% gray ".
"HTML code" may be difficult to find. The specific method is as follows (taking word2007 as an example ):
1. Click Start-style;
2. Select "all styles" in "options" of the style ";
3. Apply the "HTML code" style.
/// // Hsync counter ////////// ///////////////// Reg [8:0] hcnt; Always @ (posedge lcos_clk or negedge RST) Begin If (! RST) Hcnt <= 0; Else if (hcnt <379) Hcnt <= hcnt + 1' B1; Else Hcnt <= 0; End //************************************** *********************** // Vsync counter //************************************** *********************** Reg [8:0] vcnt; Always @ (posedge lcos_clk or negedge RST) Begin If (! RST) Vcnt <= 0; Else if (hcnt = 379) Begin If (vcnt <= 439 )////////////////// Vcnt <= vcnt + 1' B1; Else Vcnt <= 0; End End |
This article reference from: http://zhidao.baidu.com/link? Url = ogfIx-2UqTNOXycgmjGUlUp_PK-pidJTyLcExXptEHw8ADPD1gurxBgzvF3k6YGf2XQqPj2EKmqtPIOzk35eia
How to insert code into WORD