<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[调整字体让Source Insight看程序更舒服,中文空格、中文注释乱码、字体大小、等宽解决方法]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Sat, 19 Jun 2010 15:15:42 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	Source Insight确实是个好用的看程序的东东，如果内置C编译器就更好了<br/><br/>但是默认的字体有点小，看起来不爽<br/><br/>其实稍微调整一下就ok了<br/><br/>建一个工程<br/>然后 打开一个文件<br/><br/>在空白处点右键 选 Document Options<br/><br/>调整Screen Fonts<br/><br/>偶选择Tohama 并且调整到10的大小<br/><br/><br/><br/>Source Insight 多行注释宏：<br/><br/>将下面的代码保存为xxx.em并添加到你的工程里,然后在选项-&gt;菜单分配中你就可以看到这个宏了,名字叫CodeComments,你可以给这个宏添加热键.运行这个宏可以让你当前选择的行在注释与取消注释间切换(只支持//的注释,不支持/**/的注释,而且/**/的注释并不怎么好)<br/><br/>//magic-number:tph85666031<br/><br/><br/><textarea name="code" class="html" rows="15" cols="100">macro CodeComments()&#123;//多行注释
 hwnd=GetCurrentWnd()
 selection=GetWndSel(hwnd)
 LnFirst=GetWndSelLnFirst(hwnd)//取首行行号
 LnLast=GetWndSelLnLast(hwnd)//取末行行号
 hbuf=GetCurrentBuf()
 if(GetBufLine(hbuf,0)==&quot;//magic-number:tph85666031&quot;)&#123;
&nbsp;&nbsp;stop
 &#125;
 Ln=Lnfirst
 buf=GetBufLine(hbuf,Ln)
 len=strlen(buf)
 while(Ln&lt;=Lnlast)&#123;
&nbsp;&nbsp;buf=GetBufLine(hbuf,Ln)//取Ln对应的行
&nbsp;&nbsp;if(buf==&quot;&quot;)&#123;//跳过空行
&nbsp;&nbsp; Ln=Ln+1
&nbsp;&nbsp; continue
&nbsp;&nbsp;&#125;
&nbsp;&nbsp;if(StrMid(buf,0,1)==&quot;/&quot;)&#123;//需要取消注释,防止只有单字符的行
&nbsp;&nbsp; if(StrMid(buf,1,2)==&quot;/&quot;)&#123;
&nbsp;&nbsp; PutBufLine(hbuf,Ln,StrMid(buf,2,Strlen(buf)))
&nbsp;&nbsp; &#125;
&nbsp;&nbsp;&#125;
&nbsp;&nbsp;if(StrMid(buf,0,1)!=&quot;/&quot;)&#123;//需要添加注释
&nbsp;&nbsp; PutBufLine(hbuf,Ln,Cat(&quot;//&quot;,buf))
&nbsp;&nbsp;&#125;
&nbsp;&nbsp;Ln=Ln+1
 &#125;
 SetWndSel( hwnd, selection )
&#125;</textarea><br/><br/><br/>sourceinsight 3.5中文注释间有空格的一种处理方法 :<br/>用Source Install写代码的时候,中文注释的每个汉字间都会有一个空格,这样看起来相当的不习惯，其实可以修改属性来满足自己的需求。<br/><br/>options-&gt;style properties<br/><br/>comment<br/>...<br/>comment To Do<br/><br/>里面的font-&gt;font name设置为“宋体”或其它中文字体就可以了！<br/><br/>step2:<br/><br/>options-&gt;preferences-&gt;syntax formatting标签下special comment styles不勾选此项;<br/><br/>Source Insight中文注释乱码、字体大小、等宽解决方法：<br/>中文注释乱码解决方法：<br/>用记事本打开源文件，然后，选择文件-&gt;另存为，编码选为”ANSI“<br/><br/>下面的方法+等宽字体设置实践是Ok的，我试了下，用这个比较能达到目的，我选的是微软雅黑+Alt+F12：<br/><textarea name="code" class="html" rows="15" cols="100">
字体的调整：
Source Insight 菜单栏选择Options-&gt;Document Options（或者直接Alt+T），打开Document Options对话框，点击Screen Fonts，在新打开的字体对话框中设置一下就OK啦

Alt+F12可以将字体换成等宽的（Fixedsys）
</textarea>
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] 调整字体让Source Insight看程序更舒服,中文空格、中文注释乱码、字体大小、等宽解决方法]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>