Re: 編輯器的中文字會變成『亂碼』

看板MATLAB作者時間24年前 (2000/03/31 02:20), 編輯推噓1(100)
留言1則, 1人參與, 4年前最新討論串1/1
※ 引述《tchen (yes i do)》之銘言: > ※ 引述《hichien (滑鼠、神奇魔法棒)》之銘言: > > 我是使用 UltraEdit-32,可是為什麼我的文字全是黑色? > > 因此我想請問如果我想將 MATLAB的註解符號 『%』改成綠色, > > 應該如何修改 wordlist.txt檔? > > 此外可否舉例『特別字』,例如有什麼字? > > 謝謝各位先進! > 找ultra edit的help > "syntax highlighting"就有了 > 我覺得Matlab Editor還是有無法取代的地方, > 例如說檢查括號的功能啦.. > 還有可以直接run程式..不用回matlab下指令.. 剛剛研究了UltraEdit一下子 其實wordlist這個檔還蠻好寫的 我把我為.m檔寫的定義貼出來 大家可以把下面這些東西剪到你ultraedit的wordlist.txt裡面 再去調Adnvanced->configuration->Syntax Highlighting 裡面Matlab Script相關的顏色即可 p.s.我的keyword是自己隨便想到就加上去的 大家可以隨自己意思刪改 只是要注意同樣字母開頭的keyword要放到同一行,或是緊臨的幾行 /L6"Matlab Script" Line Comment = % String Chars = ' File Extensions = M /Delimiters = ~!@%^&*()-+=|\/{}[]:;"'<> , .? /Indent Strings = "for" "while" "if" /Unindent Strings = "end" /C1"Keywords" elseif else end for function return break if while case switch /C3"Operators" + - = * .. // / ^ & | ~ < > /C4"Predefined Functions" acos acosh all all ans asin asinh atan atanh axis clc clear close contour cos cosh det error eval exist fft fprintf get grid gtext hold imag log10 loglog max mesh meshgrid min nargin nargout off on pi plot real semilogx semilogy set sin sinh subplot tan tanh text title xlable ylable -- ※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: tchen.m6.ntu.edu.tw

07/10 04:12, 4年前 , 1F
用tic; toc; 量一次就知道了
07/10 04:12, 1F
文章代碼(AID): #uuvhK00 (MATLAB)
文章代碼(AID): #uuvhK00 (MATLAB)