测试一下代码高亮插件
Code Snippet: 大名顶顶啊!
1: #include "afxdialogex.h"
2:
3: #ifdef _DEBUG
4: #define new DEBUG_NEW
5: #endif
6:
7: // CSciterFrameDlg 对话框
8:
9: CSciterFrameDlg::CSciterFrameDlg(CWnd* pParent /*=NULL*/)
10: : CDialogEx(CSciterFrameDlg::IDD, pParent)
11: {
12: m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
13: }
14:
15: void CSciterFrameDlg::DoDataExchange(CDataExchange* pDX)
16: {
17: CDialogEx::DoDataExchange(pDX);
18: }
另外的风格
1: #include "afxdialogex.h"
2:
3: #ifdef _DEBUG
4: #define new DEBUG_NEW
5: #endif
6:
7: // CSciterFrameDlg 对话框
8:
9: CSciterFrameDlg::CSciterFrameDlg(CWnd* pParent /*=NULL*/)
10: : CDialogEx(CSciterFrameDlg::IDD, pParent)
11: {
12: m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
13: }
14:
15: void CSciterFrameDlg::DoDataExchange(CDataExchange* pDX)
16: {
17: CDialogEx::DoDataExchange(pDX);
18: }
OK, 很好!
Syntax Heglighter2.0 : 很多插件的鼻祖啊
// V1.0 版,未考虑 == 的情况 const char pFind[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; char GetIndex(char pchar) { int iLen = strlen(pFind); int x = 0; for(x=0;x<iLen-1;x++) { if(pchar == pFind[x]) return x; } return -1; }
个人更喜欢后一个,很有CSDN的风格,最重要的是 本身有行号,但复制代码的时候不会把前面的行号一起复制下来,既好看又好用.
以后就用这个啦!