haiku/docs/userguide/zh_CN/applications/stylededit.html
Joachim Seemer fed577d81d Updated user guide plus translations. Thanks everyone. +alpha3
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41656 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-05-22 18:01:43 +00:00

92 lines
5.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<!--
*
* Copyright 2008-2009, Haiku. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Humdinger <humdingerb@gmail.com>
* Translators:
* Pengphei Han
*
-->
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="robots" content="all" />
<title>文本编辑器</title>
<link rel="stylesheet" type="text/css" href="../../Haiku-doc.css" />
</head>
<body>
<div id="banner">
<div><span>用户指南</span></div>
</div>
<div class="nav">
<div class="inner">
<ul class="lang-menu">
<li class="now"><img src="../../images/flags/zh_CN.png" alt="" />  中文 [中文]</li>
<li><a href="../../fr/applications/stylededit.html"><img src="../../images/flags/fr.png" alt="" />Français</a></li>
<li><a href="../../de/applications/stylededit.html"><img src="../../images/flags/de.png" alt="" />Deutsch</a></li>
<li><a href="../../it/applications/stylededit.html"><img src="../../images/flags/it.png" alt="" />Italiano</a></li>
<li><a href="../../ru/applications/stylededit.html"><img src="../../images/flags/ru.png" alt="" />Русский</a></li>
<li><a href="../../es/applications/stylededit.html"><img src="../../images/flags/es.png" alt="" />Español</a></li>
<li><a href="../../sv_SE/applications/stylededit.html"><img src="../../images/flags/sv_SE.png" alt="" />Svenska</a></li>
<li><a href="../../jp/applications/stylededit.html"><img src="../../images/flags/jp.png" alt="" />日本語</a></li>
<li><a href="../../uk/applications/stylededit.html"><img src="../../images/flags/uk.png" alt="" />Українська</a></li>
<li><a href="../../pt_PT/applications/stylededit.html"><img src="../../images/flags/pt_PT.png" alt="" />Português</a></li>
<li><a href="../../en/applications/stylededit.html"><img src="../../images/flags/gb.png" alt="" />English</a></li>
</ul>
<span>
« <a href="soundrecorder.html">录音机</a>
:: <a href="../applications.html#list-of-apps" class="uplink">应用程序</a>
:: <a href="terminal.html">终端</a> »
</span></div>
</div>
<div id="content">
<div>
<h2><img src="../../images/apps-images/stylededit-icon_64.png" alt="stylededit-icon_64.png" width="64" height="64" />文本编辑器</h2>
<table summary="layout" border="0" cellspacing="0" cellpadding="2">
<tr><td>桌面栏:</td><td style="width:15px;"></td><td><span class="menu">应用程序</span></td></tr>
<tr><td>位置:</td><td></td><td><span class="path">/boot/system/apps/StyledEdit</span></td></tr>
<tr><td>设置:</td><td></td><td><i>none</i></td></tr>
</table>
<p><br /></p>
<p>该程序是Haiku的简单文本编辑器。尽管它以普通文本格式保存文件但是额外的属性保证了它具有有限的显示文本格式的能力。</p>
<img src="../images/apps-images/stylededit.png" alt="stylededit.png" />
<p>如果您对此很感兴趣,那么下面就是在终端中使用 <span class="cli">listattr</span> 查看到的文本的附加属性:</p>
<pre class="terminal">~&gt; listattr /boot/home/Desktop/test.txt
File: /boot/home/Desktop/test.txt
Type Size Name
----------- --------- -------------------------------
Int-32 4 "be:encoding"
MIME String 11 "BEOS:TYPE"
Int-32 4 "wrap"
Int-32 4 "alignment"
Raw Data 1048 "styles"
1071 bytes total in attributes.</pre>
<p>您可以看到在本程序菜单中的所有格式选项如下line wrapping on/off和 alignmentleft/center/right属于不同属性。每个单词的格式fontsizecolor则属于另一种。</p>
<div class="box-info">由于这些属性是 BFS 的文件系统的特性这不仅意味着其他的平台只能够看到普通的文本文件还指出如果将文件存储在其他的非BFS分区所有的格式将会丢失。以上所有属性都将被除去而只留下普通的文本文件。</div>
<p>在任何情况下,虽然仍然是普通的文本文件,但是具有不同颜色和大小的字体仍然是非常有用的。例如<span class="cli">ReadMe.txt</span>在任何平台下的Shell中都是可读的但是在Haiku下双击该文件阅读它仍然具有一定的风格。</p>
<p>事实上,本编辑器的使用非常简单,我们将会跳过对每个普通的菜单的讲解。您只需要写下文字,然后再<span class="menu">Font</span>菜单中对选中的文字设置相应的字体,大小和颜色。<span class="menu">Document</span> 菜单中的自动换行和对齐只对整个文件有效。</p>
</div>
</div>
<div class="nav">
<div class="inner"><span>
« <a href="soundrecorder.html">录音机</a>
:: <a href="../applications.html#list-of-apps" class="uplink">应用程序</a>
:: <a href="terminal.html">终端</a> »
</span></div>
</div>
</body>
</html>