The function of custom CSS is tested,CodeThe display effect is much more comfortable than that in the default status.
Refer 《Cnblogs blog typographical skillsHttp://www.cnblogs.com/lyj/archive/2008/11/30/1344463.html
The CSS style copied directly is too lazy to be modified:
. Code
{
Background:# Fbedbb;
Border:# C0c0c0 1px solid;
Padding:5px;
Margin:0 40px 0 20px;
Font-family:Verdana, Helvetica, "", Arial, "", sans-serif;
}
The configuration method is "my blog/management/settings/custom page through CSS". paste the above Code and click OK, as shown in. Then, you can use the "insert code" function in the editing status to display the effect as you set it.
This is the result of "inserting code" by default.
/* **********************************
Test code Display
********************************** */
# Include < Stdio. h >
# Deifne m 100
Typedef Struct
{
Int A;
Long B;
} Mystruct;
Int Main ()
{
Int I;
I = 0 ;
Return 0 ;
}
/* * End **************** */
Display Effect After custom CSS is used
/************************************ Test the code Display Effect * **********************************/# include <stdio. h> # deifne M 100 typedef struct {int A; long B;} mystruct; int main () {int I; I = 0; return 0 ;} /************** end *****************/
The only drawback is that the Code display is the default effect in the editing time. The actual effect can only be seen after the release.