Code "small post" For blog tools"

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.