It is annoying to post code on a blog. If a tool can automatically convert codes into neat and beautiful HTML code, that would be nice!
The following tool is believed to meet your "Basic" requirements. She will provide you:
1. code editing (delete, paste, and modify) and searching;
2. Automatic row number generation;
3. Automatic indentation;
4. Convert to clean and beautiful HTML code;
5. annotation and keyword coloring;
Note:: Do not forget to press enter after you edit each line to confirm the modification. The main function of this tool is "automatic conversion". You 'd better edit it in the powerful code editor and paste it into the tool, and then convert it. Therefore, this tool does not provide the SAVE and open functions.
Converted HTML code:
<Div class = "code">
<Font color = #4c89b8> 000001 </font> & nbsp; <font color = #2026a2> int </font> main () <br/>
<Font color = #4c89b8> 000002 </font> & nbsp; & nbsp ;{< br/>
<Font color = #4c89b8> 000003 </font> & nbsp; <font color = #2026a2> int </font> A, B; <br/>
<Font color = #4c89b8> 000004 </font> & nbsp; <font color = #2026a2> double </font> C; <br/>
<Font color = #4c89b8> 000005 </font> & nbsp; <font color = #2026a2> float </font> D; <br/>
<Font color = #4c89b8> 000006 </font> & nbsp; printf ("Hello, world! /N "); <br/>
<Font color = #4c89b8> 000007 </font> & nbsp; <font color = #2026a2> return </font> 0; <br/>
<Font color = #4c89b8> 000008 </font> & nbsp; & nbsp ;}< br/>
</Div>
Effect:
000001 int main ()
000002 {
000003 int A, B;
000004 double C;
000005 float D;
000006 printf ("Hello, world! /N ");
000007 return 0;
000008}
You can also see the effect of an actual code through the following link:
Http://blog.csdn.net/Lodger007/archive/2006/07/25/973545.aspx
UsageIt is quite simple. Remember: Ctrl + C, CTRL + V, and the following button:
When this button is pressed, you will get the corresponding HTML code (read-only status ).
In addition, you may need to add the code format to your CSS:
. Code
{
Background-color: # eeeeee; font-family: "fixedsys", courier, monospace;
Font-size: 10pt;
Border: 1px dotted
}
Applicable Language: Class C/C ++, you can add keywords to the keyword file (separated by spaces ).
Download connection: Http://www.cnblogs.com/Files/Groov0V/BlogCoder.rar