~vcs-imports/ghex/master

« back to all changes in this revision

Viewing changes to help/HTML/zh_CN/ghex/basics-edit-file.html

  • Committer: Logan Rathbone
  • Date: 2022-01-06 23:52:20 UTC
  • Revision ID: git-v1:c00df7466b5028d13d4859545ab947f2736c7784
static-html-help: Tarball rather than a bare dirtree

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html>
2
 
<html>
3
 
<head>
4
 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
 
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
6
 
<title>Editing files</title>
7
 
<link rel="stylesheet" type="text/css" href="zh-CN.css">
8
 
<script type="text/javascript" src="highlight.pack.js"></script><script>
9
 
document.addEventListener('DOMContentLoaded', function() {
10
 
  var matches = document.querySelectorAll('code.syntax')
11
 
  for (var i = 0; i < matches.length; i++) {
12
 
    hljs.highlightBlock(matches[i]);
13
 
  }
14
 
}, false);</script><script type="text/javascript" src="yelp.js"></script>
15
 
</head>
16
 
<body lang="zh-CN" dir="ltr"><main><div class="page">
17
 
<header><div class="inner pagewide"><div class="trails" role="navigation"><div class="trail">
18
 
<a class="trail" href="index.html" title="GHex Help">GHex Help</a> › <a class="trail" href="index.html#basics" title="Basics">Basics</a> » </div></div></div></header><article><div class="hgroup pagewide"><h1 class="title"><span class="title">Editing files</span></h1></div>
19
 
<div class="region">
20
 
<div class="contents pagewide"></div>
21
 
<section id=""><div class="inner">
22
 
<div class="hgroup pagewide"><h2 class="title"><span class="title">Toggling the hex or ASCII panes</span></h2></div>
23
 
<div class="region"><div class="contents pagewide">
24
 
<p class="p">File can be edited in GHex from either the hex pane or the ASCII pane.</p>
25
 
<p class="p">To focus either pane to accept your keystrokes, you may click on the appropriate pane, or:</p>
26
 
<div class="list"><div class="inner"><div class="region"><ul class="list">
27
 
<li class="list"><p class="p">Press <span class="keyseq"><span class="key"><kbd>Alt</kbd></span>+<span class="key"><kbd>Left</kbd></span></span> to focus the hex pane, and</p></li>
28
 
<li class="list"><p class="p">Press <span class="keyseq"><span class="key"><kbd>Alt</kbd></span>+<span class="key"><kbd>Right</kbd></span></span> to focus the ASCII pane.</p></li>
29
 
</ul></div></div></div>
30
 
<p class="p">使用以下任意方法可以在文件中移动光标:</p>
31
 
<div class="list"><div class="inner"><div class="region"><ul class="list">
32
 
<li class="list"><p class="p">Use the scrollbar on the window and the mouse to select a byte by clicking on it.</p></li>
33
 
<li class="list"><p class="p">Use the arrow keys, <span class="key"><kbd>Home</kbd></span>, <span class="key"><kbd>End</kbd></span>, <span class="key"><kbd>PageUp</kbd></span> or <span class="key"><kbd>PageDown</kbd></span> on the keyboard.</p></li>
34
 
<li class="list"><p class="p">Choose <span class="gui">Jump to Byte</span> from the (Main menu) or press <span class="keyseq"><span class="key"><kbd>Ctrl</kbd></span>+<span class="key"><kbd>J</kbd></span></span>,
35
 
    and enter the cursor offset as a decimal or hexadecimal value.
36
 
    The format of the hexadecimal value must be 0x followed by the offset, for example 0x3.</p></li>
37
 
</ul></div></div></div>
38
 
</div></div>
39
 
</div></section><section id=""><div class="inner">
40
 
<div class="hgroup pagewide"><h2 class="title"><span class="title">Editing the file using the hex or ASCII pane</span></h2></div>
41
 
<div class="region"><div class="contents pagewide">
42
 
<p class="p">Edit the ASCII format in the same way you edit a normal text file.</p>
43
 
<p class="p">To edit the hexadecimal format, use the values 0 to 9 and a to f. This
44
 
  operation is not case-sensitive.</p>
45
 
</div></div>
46
 
</div></section><section id=""><div class="inner">
47
 
<div class="hgroup pagewide"><h2 class="title"><span class="title">Insert mode</span></h2></div>
48
 
<div class="region"><div class="contents pagewide">
49
 
<p class="p"><span class="gui">Insert Mode</span> can be toggled on or off by pressing <span class="key"><kbd>Insert</kbd></span>, or by
50
 
  clicking the <span class="gui">Toggle insert mode</span> button in the status bar.</p>
51
 
<p class="p">When <span class="gui">Insert Mode</span> is enabled, this means data will be added to the file as
52
 
  opposed to replacing existing data.</p>
53
 
<p class="p">Unlike traditional text editors, having <span class="gui">Insert Mode</span> <span class="em">off</span> is
54
 
  considered the default state in GHex, given that hex editors are routinely used
55
 
  to edit existing data in binary files that are very specifically laid out. In
56
 
  some cases, such files may be of a fixed size and increasing or decreasing
57
 
  their size may cause undefined or unwanted behaviour in applications that open
58
 
  them.</p>
59
 
</div></div>
60
 
</div></section><section class="links" role="navigation"><div class="inner">
61
 
<div class="hgroup pagewide"></div>
62
 
<div class="contents pagewide"><div class="links guidelinks"><div class="inner">
63
 
<div class="title"><h2><span class="title">更多信息</span></h2></div>
64
 
<div class="region"><ul><li class="links "><a href="index.html#basics" title="Basics">Basics</a></li></ul></div>
65
 
</div></div></div>
66
 
</div></section>
67
 
</div>
68
 
<div class="clear"></div></article><footer><div class="inner pagewide"><div class="about ui-expander" role="contentinfo">
69
 
<div class="yelp-data yelp-data-ui-expander" data-yelp-expanded="false"></div>
70
 
<div class="inner">
71
 
<div class="hgroup"><h2><span class="title">关于</span></h2></div>
72
 
<div class="region"><div class="contents">
73
 
<div class="copyrights"><div class="copyright">© 2022 Logan Rathbone</div></div>
74
 
<div class="credits">
75
 
<div class="credits-authors">
76
 
<div class="title"><span class="title">编写者</span></div>
77
 
<ul class="credits"><li>Logan Rathbone</li></ul>
78
 
</div>
79
 
<div class="credits-blank"></div>
80
 
<div class="credits-blank"></div>
81
 
</div>
82
 
</div></div>
83
 
</div>
84
 
</div></div></footer>
85
 
</div></main></body>
86
 
</html>