Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnPack IDE 专家包(CnWizards)
» 代码格式化[建议]
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 代码格式化[建议]
fxerp@qq.com
新警察
UID 233612
Digest Posts 0
Credits 24
Posts 6
点点分 24
Reading Access 10
Registered 2015-8-25
Status Offline
#1
Post at 2015-8-25 15:49
Profile
|
Blog
|
P.M.
代码格式化[建议]
分行的字串没必要把它们格式化到一行中去。
分行的字串一般都是经过预排的。把单行格式化好就OK
例如:
s := '像素总数:%d' + #13 + #10
+ '红误差数:%d,误差率:%d%%,最大误差:%d' + #13 + #10
+ '绿误差数:%d,误差率:%d%%,最大误差:%d' + #13 + #10
+ '蓝误差数:%d,误差率:%d%%,最大误差:%d'
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2015-8-25 17:48
Profile
|
Blog
|
P.M.
我们本身也无法判断是不是预排好的,所以换行不易控制。目前对换行的控制只在设置自动换行时处理。
如果不想这块代码被格式化,可以将代码块用{(*}和{*)}将其括起来,以不格式化它。
fxerp@qq.com
新警察
UID 233612
Digest Posts 0
Credits 24
Posts 6
点点分 24
Reading Access 10
Registered 2015-8-25
Status Offline
#3
Post at 2015-8-27 01:56
Profile
|
Blog
|
P.M.
我的意思是,不用去把换行的语句合并到一行.它原来怎样分行的,还让它怎么分行.
只是在单行中进行格式化,不进行合并行.
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-27 11:15
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.012042 second(s), 8 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats