CP VC6//字型調整全攻略

  1. CP VC6//字型調整全攻略

CP VC6//字型調整全攻略

原文連結: https://darkblack01.blogspot.com/2012/09/cp-vc6.html
移植時的最後更新日期: 2014-02-22T11:20:58.024+08:00

最近下載了Sublime text 2來玩,說真的,像我這樣常用一大坨IDE在寫程式的開發者,拿高內聚低藕合的程式,只用在文字編輯,真的只是用開心的,不會拿來做平常的編輯器。
畢竟,我用邪惡的M$的VC6,不會Sublime text 2打code,再貼回去。(真的很可惜)

但是,因為它的字型和編排真的太迷人了,所以想要跟他一樣(雖然不知道他是用什麼字的,所以最後沒有和他一樣)就在Google找「vc6 自訂editor



想不到,真的有一篇教你改字型的教學耶!
因為VC6的那個時代…換字型實在不是一個會被注重的功能(也不知道為什麼只剩下幾種字型可以選,大致上可以分兩類,「醜」和「更醜」)

我就改一改想不到所有可以修改字型的地方都可以在regedit.exe修改。

它分成幾個地方可以修改

  1. Calls Window
  2. Disassembly Window
  3. Memory Window
  4. Output Window
  5. Registers Window
  6. Source Browser
  7. Source Window
  8. Variables Window
  9. Watch Window
  10. Workspace Window

    幾個常見的,標示如下圖,其它的我想是程式除錯的其它視窗:


    由於我有三台電腦都用VC6,它又沒有雲端同步的功能,所以只好手動雲端同步。
    regEdit.reg可以匯出成的。reg檔(其實骨子裡就是。TXT檔)
    如下(可直接複製下來,開記事本,存成
    .reg,再直接點兩下執行就可以設定完成了):


    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format]

    [HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format\Calls Window]
    “FontFace”=“Monaco”
    “FontSize”=dword:00000007
    "Text"=hex:00,00,00,00,ff,ff,ff,00,13,01,b3,00
    "Text Selection"=hex:ff,ff,ff,00,00,00,00,00,19,00,19,00
    "Calls Highlight"=hex:00,00,00,00,00,ff,00,00,10,00,10,00
    "Superceded code"=hex:80,80,80,00,ff,ff,ff,00,10,00,10,00

    [HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format\Disassembly Window]
    “FontFace”=“Monaco”
    “FontSize”=dword:00000009
    "Text"=hex:00,00,00,00,ff,ff,ff,00,13,01,b3,00
    "Text Selection"=hex:ff,ff,ff,00,00,00,00,00,19,00,19,00
    "Assembly Code"=hex:80,80,80,00,ff,ff,ff,00,10,00,10,00

    [HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format\Memory Window]
    “FontFace”=“Monaco”
    “FontSize”=dword:00000007
    "Text"=hex:00,00,00,00,ff,ff,ff,00,13,01,b3,00
    "Text Selection"=hex:ff,ff,ff,00,00,00,00,00,19,00,19,00
    "Memory Highlight"=hex:ff,00,00,00,ff,ff,ff,00,10,00,10,00

    [HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format\Output Window]
    “FontFace”=“Calibri”
    “FontSize”=dword:00000007
    "Text"=hex:00,00,00,00,ff,ff,ff,00,15,00,15,00
    "Text Selection"=hex:ff,ff,ff,00,00,00,00,00,19,00,19,00
    "Current Error/Tag"=hex:ff,ff,ff,00,00,00,80,00,55,00,55,00
    "Bookmark"=hex:00,00,00,00,00,ff,ff,00,10,00,10,00

    [HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format\Registers Window]
    “FontFace”=“Monaco”
    “FontSize”=dword:00000007
    "Text"=hex:00,00,00,00,ff,ff,ff,00,13,01,b3,00
    "Text Selection"=hex:ff,ff,ff,00,00,00,00,00,19,00,19,00
    "Value Highlight"=hex:ff,00,00,00,ff,ff,ff,00,10,00,10,00

    [HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format\Source Browser]
    “FontFace”=“Calibri”
    “FontSize”=dword:00000007
    "Text"=hex:00,00,00,00,ff,ff,ff,00,15,00,15,00
    "Text Selection"=hex:ff,ff,ff,00,00,00,00,00,19,00,19,00

    [HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format\Source Window]
    “FontFace”=“Monaco”
    “FontSize”=dword:00000009
    "Text"=hex:00,00,00,00,ff,ff,ff,00,13,01,b3,00
    "Text Selection"=hex:ff,ff,ff,00,00,00,00,00,19,00,19,00
    "Current Error/Tag"=hex:ff,ff,ff,00,00,00,80,00,d2,01,b2,01
    "Bookmark"=hex:00,00,00,00,00,ff,ff,00,10,00,10,00
    "Breakpoint"=hex:ff,ff,ff,00,80,00,00,00,10,00,10,00
    "Current Statement"=hex:00,00,00,00,ff,ff,00,00,70,00,70,00
    "Selection Margin"=hex:c8,c8,c8,00,c8,c8,c8,00,13,00,13,00
    "Keyword"=hex:00,00,ff,00,ff,ff,ff,00,10,00,11,00
    "Comment"=hex:00,80,00,00,ff,ff,ff,00,10,00,11,00
    "Number"=hex:00,00,00,00,ff,ff,ff,00,11,00,11,00
    "String"=hex:00,00,00,00,ff,ff,ff,00,11,00,11,00
    "Operator"=hex:00,00,00,00,ff,ff,ff,00,11,00,11,00
    "Wizard IDL/ODL Code"=hex:80,80,80,00,ff,ff,ff,00,14,00,15,00
    "HTML Element Name"=hex:80,00,80,00,ff,ff,ff,00,14,00,15,00
    "HTML Attribute Name"=hex:ff,00,00,00,ff,ff,ff,00,14,00,15,00
    "HTML Attribute Value"=hex:00,00,ff,00,ff,ff,ff,00,14,00,15,00
    "HTML Comment"=hex:00,80,00,00,ff,ff,ff,00,14,00,15,00
    "HTML Entity"=hex:ff,00,00,00,ff,ff,ff,00,14,00,15,00
    "HTML Tag Delimiter"=hex:00,00,ff,00,ff,ff,ff,00,14,00,15,00
    "HTML String"=hex:00,00,ff,00,ff,ff,ff,00,14,00,15,00
    "HTML Tag Text"=hex:ff,00,ff,00,ff,ff,ff,00,14,00,15,00
    "HTML Operator"=hex:00,00,ff,00,ff,ff,ff,00,14,00,15,00
    "HTML Server-Side Script"=hex:00,00,00,00,ff,ff,00,00,14,00,14,00
    "User Defined Keywords"=hex:00,00,ff,00,ff,ff,ff,00,14,00,15,00
    "Wizard Code"=hex:80,80,80,00,ff,ff,ff,00,14,00,15,00

    [HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format\Variables Window]
    “FontFace”=“Calibri”
    “FontSize”=dword:00000007
    "Text"=hex:00,00,00,00,ff,ff,ff,00,13,01,b3,00
    "Text Selection"=hex:ff,ff,ff,00,00,00,00,00,19,00,19,00
    "Variables Highlight"=hex:ff,00,00,00,ff,ff,ff,00,10,00,10,00

    [HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format\Watch Window]
    “FontFace”=“Calibri”
    “FontSize”=dword:00000007
    "Text"=hex:00,00,00,00,ff,ff,ff,00,13,01,b3,00
    "Text Selection"=hex:ff,ff,ff,00,00,00,00,00,19,00,19,00
    "Watch Highlight"=hex:ff,00,00,00,ff,ff,ff,00,10,00,10,00

    [HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format\Workspace Window]
    “FontFace”=“Calibri”
    “FontSize”=dword:00000007


    特別要提的是
    • 寫程式適合使用等寬字型(像原本預設的醜醜字體全部都是等寬字體。),我選了一種網路找到的Monaco字型。
    • 其它非程式碼的部份,就可以使用非等寬字型,Workspace和Output的部份我設定成Calibri。

    再來Windows XP中的使用者改到這裡打開,一定會看見沒這麼好看的字,會有鋸齒狀!哈〜
    所以,再來一個ClearType增強工具,它是微軟官方出的一個顯示增強輔助程式,灌好執行好,就有像Windows 7的一樣好看的字囉!^ ^



    參考:
    [1] 如何在 Vistual Studio C++ 6 用其他的顯示字體