docs/ikteam: Delete most files.
[haiku.git] / docs / userguide / zh_CN / applications / stylededit.html
blob2861e5521b234b8ab0a62aad1ff4fbc8c16a6681
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN" xml:lang="zh-CN">
4 <head>
5 <!--
7 * Copyright 2008-2009, Haiku. All rights reserved.
8 * Distributed under the terms of the MIT License.
10 * Authors:
11 * Humdinger <humdingerb@gmail.com>
12 * Translators:
13 * Pengphei Han
15 -->
16 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
17 <meta http-equiv="Content-Style-Type" content="text/css" />
18 <meta name="robots" content="all" />
19 <title>文本编辑器</title>
20 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
21 <link rel="stylesheet" type="text/css" href="../../Haiku-doc.css" />
22 </head>
23 <body>
25 <div id="banner">
26 <div><span>用户指南</span></div>
27 </div>
29 <div class="nav">
30 <div class="inner">
31 <ul class="lang-menu">
32 <li class="now"><img src="../../images/flags/zh_CN.png" alt="" />  中文 [中文]</li>
33 <li><a href="../../ca/applications/stylededit.html"><img src="../../images/flags/ca.png" alt="" />Català</a></li>
34 <li><a href="../../de/applications/stylededit.html"><img src="../../images/flags/de.png" alt="" />Deutsch</a></li>
35 <li><a href="../../en/applications/stylededit.html"><img src="../../images/flags/gb.png" alt="" />English</a></li>
36 <li><a href="../../es/applications/stylededit.html"><img src="../../images/flags/es.png" alt="" />Español</a></li>
37 <li><a href="../../fr/applications/stylededit.html"><img src="../../images/flags/fr.png" alt="" />Français</a></li>
38 <li><a href="../../it/applications/stylededit.html"><img src="../../images/flags/it.png" alt="" />Italiano</a></li>
39 <li><a href="../../hu/applications/stylededit.html"><img src="../../images/flags/hu.png" alt="" />Magyar</a></li>
40 <li><a href="../../pl/applications/stylededit.html"><img src="../../images/flags/pl.png" alt="" />Polski</a></li>
41 <li><a href="../../pt_PT/applications/stylededit.html"><img src="../../images/flags/pt_PT.png" alt="" />Português</a></li>
42 <li><a href="../../pt_BR/applications/stylededit.html"><img src="../../images/flags/pt_BR.png" alt="" />Português (Brazil)</a></li>
43 <li><a href="../../ro/applications/stylededit.html"><img src="../../images/flags/ro.png" alt="" />Română</a></li>
44 <li><a href="../../sk/applications/stylededit.html"><img src="../../images/flags/sk.png" alt="" />Slovenčina</a></li>
45 <li><a href="../../fi/applications/stylededit.html"><img src="../../images/flags/fi.png" alt="" />Suomi</a></li>
46 <li><a href="../../sv_SE/applications/stylededit.html"><img src="../../images/flags/sv_SE.png" alt="" />Svenska</a></li>
47 <li><a href="../../ru/applications/stylededit.html"><img src="../../images/flags/ru.png" alt="" />Русский</a></li>
48 <li><a href="../../uk/applications/stylededit.html"><img src="../../images/flags/uk.png" alt="" />Українська</a></li>
49 <li><a href="../../jp/applications/stylededit.html"><img src="../../images/flags/jp.png" alt="" />日本語</a></li>
50 </ul>
51 <span>
52 « <a href="soundrecorder.html">录音机</a>
53 :: <a href="../applications.html#list-of-apps" class="uplink">应用程序
54 </a>
55 :: <a href="terminal.html">终端</a> »
56 </span></div>
57 </div>
59 <div id="content">
60 <div>
62 <h2><img src="../../images/apps-images/stylededit-icon_64.png" alt="stylededit-icon_64.png" width="64" height="64" />文本编辑器</h2>
63 <table summary="layout" border="0" cellspacing="0" cellpadding="2">
64 <tr><td>桌面栏:</td><td style="width:15px;"></td><td><span class="menu">应用程序</span></td></tr>
65 <tr><td>位置:</td><td></td><td><span class="path">/boot/system/apps/StyledEdit</span></td></tr>
66 <tr><td>设置:</td><td></td><td><i>none</i></td></tr>
67 </table>
68 <p><br /></p>
69 <p>该程序是Haiku的简单文本编辑器。尽管它以普通文本格式保存文件,但是额外的属性保证了它具有有限的显示文本格式的能力。</p>
70 <img src="../images/apps-images/stylededit.png" alt="stylededit.png" />
71 <p>如果您对此很感兴趣,那么下面就是在终端中使用 <span class="cli">listattr</span> 查看到的文本的附加属性:</p>
72 <pre class="terminal">~&gt; listattr /boot/home/Desktop/test.txt
73 File: /boot/home/Desktop/test.txt
74 Type Size Name
75 ----------- --------- -------------------------------
76 Int-32 4 "be:encoding"
77 MIME String 11 "BEOS:TYPE"
78 Int-32 4 "wrap"
79 Int-32 4 "alignment"
80 Raw Data 1048 "styles"
82 1071 bytes total in attributes.</pre>
83 <p>您可以看到,在本程序菜单中的所有格式选项如下:line wrapping (on/off)和 alignment(left/center/right),属于不同属性。每个单词的格式(font,size,color)则属于另一种。</p>
84 <div class="box-info">由于这些属性是 BFS 的文件系统的特性,这不仅意味着其他的平台只能够看到普通的文本文件,还指出,如果将文件存储在其他的非BFS分区,所有的格式将会丢失。以上所有属性都将被除去,而只留下普通的文本文件。</div>
85 <p>在任何情况下,虽然仍然是普通的文本文件,但是具有不同颜色和大小的字体仍然是非常有用的。例如<span class="cli">ReadMe.txt</span>在任何平台下的Shell中都是可读的,但是在Haiku下,双击该文件阅读,它仍然具有一定的风格。</p>
86 <p>事实上,本编辑器的使用非常简单,我们将会跳过对每个普通的菜单的讲解。您只需要写下文字,然后再<span class="menu">Font</span>菜单中对选中的文字设置相应的字体,大小和颜色。<span class="menu">Document</span> 菜单中的自动换行和对齐只对整个文件有效。</p>
88 </div>
89 </div>
91 <div class="nav">
92 <div class="inner"><span>
93 « <a href="soundrecorder.html">录音机</a>
94 :: <a href="../applications.html#list-of-apps" class="uplink">应用程序
95 </a>
96 :: <a href="terminal.html">终端</a> »
97 </span></div>
98 </div>
100 </body>
101 </html>