📄 httag.h
字号:
/* * HT Editor * httag.h * * Copyright (C) 1999-2002 Stefan Weyergraf * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */#ifndef __HTTAG_H__#define __HTTAG_H__#include "io/types.h"#include "io/display.h"#include "stream.h"/* SELECTION-TAG */#define HT_TAG_SEL 0x01#define HT_TAG_SEL_LEN(n) (sizeof(ht_tag_sel)+(n))#define HT_TAG_SEL_VLEN(n) (n)#define HT_STATICTAG_SEL 0x81#define HT_STATICTAG_SEL_CH "\e\x81"struct ht_tag_sel { byte escape; byte magic; ID id128_1; ID id128_2; ID id128_3; ID id128_4; byte strlen;} PACKED;/* FLAGS-TAG */#define HT_TAG_FLAGS 0x02#define HT_TAG_FLAGS_LEN sizeof(ht_tag_flags)#define HT_TAG_FLAGS_VLEN 1#define HT_STATICTAG_FLAGS 0x82#define HT_STATICTAG_FLAGS_CH "\e\x82"struct ht_tag_flags { byte escape; byte magic; FileOfs offset; ID id;} PACKED;struct ht_tag_flags_s { char bitidx; const char *desc;} PACKED;/* GROUP-TAG */#define HT_TAG_GROUP 0x03#define HT_TAG_GROUP_LEN sizeof(ht_tag_group)#define HT_STATICTAG_GROUP 0x83#define HT_STATICTAG_GROUP_CH "\e\x83"struct ht_tag_group { byte escape; byte magic;} PACKED;/* COLOR-TAG */#define HT_TAG_COLOR 0x04#define HT_TAG_COLOR_LEN sizeof(ht_tag_color)#define HT_STATICTAG_COLOR 0x84#define HT_STATICTAG_COLOR_CH "\e\x84"struct ht_tag_color { byte escape; byte magic; uint32 color;} PACKED;/* EDIT-BYTE-TAG */#define HT_TAG_EDIT_BYTE 0x10#define HT_TAG_EDIT_BYTE_LEN sizeof(ht_tag_edit_byte)#define HT_TAG_EDIT_BYTE_VLEN (2)#define HT_TAG_EDIT_BYTE_SIZE (1)#define HT_STATICTAG_EDIT_BYTE 0x90#define HT_STATICTAG_EDIT_BYTE_CH "\e\x90"struct ht_tag_edit_byte { byte escape; byte magic; FileOfs offset;} PACKED;/* EDIT WORD */struct ht_tag_edit_word_generic { byte escape; byte magic; FileOfs offset;} PACKED;/* EDIT DWORD */struct ht_tag_edit_dword_generic { byte escape; byte magic; FileOfs offset;} PACKED;/* EDIT QWORD */struct ht_tag_edit_qword_generic { byte escape; byte magic; FileOfs offset;} PACKED;/* EDIT-WORD-TAG (little-endian) */#define HT_TAG_EDIT_WORD_LE 0x11#define HT_TAG_EDIT_WORD_LE_LEN sizeof(ht_tag_edit_word_generic)#define HT_TAG_EDIT_WORD_LE_VLEN (4)#define HT_TAG_EDIT_WORD_LE_SIZE (2)#define HT_STATICTAG_EDIT_WORD_LE 0x91#define HT_STATICTAG_EDIT_WORD_LE_CH "\e\x91"/* EDIT-DWORD-TAG (little-endian) */#define HT_TAG_EDIT_DWORD_LE 0x12#define HT_TAG_EDIT_DWORD_LE_LEN sizeof(ht_tag_edit_dword_generic)#define HT_TAG_EDIT_DWORD_LE_VLEN (8)#define HT_TAG_EDIT_DWORD_LE_SIZE (4)#define HT_STATICTAG_EDIT_DWORD_LE 0x92#define HT_STATICTAG_EDIT_DWORD_LE_CH "\e\x92"/* EDIT-QWORD-TAG (little-endian) */#define HT_TAG_EDIT_QWORD_LE 0x13#define HT_TAG_EDIT_QWORD_LE_LEN sizeof(ht_tag_edit_qword_generic)#define HT_TAG_EDIT_QWORD_LE_VLEN (16)#define HT_TAG_EDIT_QWORD_LE_SIZE (8)#define HT_STATICTAG_EDIT_QWORD_LE 0x93#define HT_STATICTAG_EDIT_QWORD_LE_CH "\e\x93"/* EDIT-WORD-TAG (big-endian) */#define HT_TAG_EDIT_WORD_BE 0x14#define HT_TAG_EDIT_WORD_BE_LEN sizeof(ht_tag_edit_word_generic)#define HT_TAG_EDIT_WORD_BE_VLEN (4)#define HT_TAG_EDIT_WORD_BE_SIZE (2)#define HT_STATICTAG_EDIT_WORD_BE 0x94#define HT_STATICTAG_EDIT_WORD_BE_CH "\e\x94"/* EDIT-DWORD-TAG (big-endian) */#define HT_TAG_EDIT_DWORD_BE 0x15#define HT_TAG_EDIT_DWORD_BE_LEN sizeof(ht_tag_edit_dword_generic)#define HT_TAG_EDIT_DWORD_BE_VLEN (8)#define HT_TAG_EDIT_DWORD_BE_SIZE (4)#define HT_STATICTAG_EDIT_DWORD_BE 0x95#define HT_STATICTAG_EDIT_DWORD_BE_CH "\e\x95"/* EDIT-QWORD-TAG (big-endian) */#define HT_TAG_EDIT_QWORD_BE 0x16#define HT_TAG_EDIT_QWORD_BE_LEN sizeof(ht_tag_edit_qword_generic)#define HT_TAG_EDIT_QWORD_BE_VLEN (16)#define HT_TAG_EDIT_QWORD_BE_SIZE (8)#define HT_STATICTAG_EDIT_QWORD_BE 0x96#define HT_STATICTAG_EDIT_QWORD_BE_CH "\e\x96"/* EDIT-WORD-TAG (var-endian) */#define HT_TAG_EDIT_WORD_VE 0x17#define HT_TAG_EDIT_WORD_VE_LEN sizeof(ht_tag_edit_word_generic)#define HT_TAG_EDIT_WORD_VE_VLEN (4)#define HT_TAG_EDIT_WORD_VE_SIZE (2)#define HT_STATICTAG_EDIT_WORD_VE 0x97#define HT_STATICTAG_EDIT_WORD_VE_CH "\e\x97"/* EDIT-DWORD-TAG (var-endian) */#define HT_TAG_EDIT_DWORD_VE 0x18#define HT_TAG_EDIT_DWORD_VE_LEN sizeof(ht_tag_edit_dword_generic)#define HT_TAG_EDIT_DWORD_VE_VLEN (8)#define HT_TAG_EDIT_DWORD_VE_SIZE (4)#define HT_STATICTAG_EDIT_DWORD_VE 0x98#define HT_STATICTAG_EDIT_DWORD_VE_CH "\e\x98"/* EDIT-QWORD-TAG (var-endian) */#define HT_TAG_EDIT_QWORD_VE 0x19#define HT_TAG_EDIT_QWORD_VE_LEN sizeof(ht_tag_edit_qword_generic)#define HT_TAG_EDIT_QWORD_VE_VLEN (16)#define HT_TAG_EDIT_QWORD_VE_SIZE (8)#define HT_STATICTAG_EDIT_QWORD_VE 0x99#define HT_STATICTAG_EDIT_QWORD_VE_CH "\e\x99"/* EDIT-TIME-TAG */#define HT_TAG_EDIT_TIME_BE 0x1a#define HT_TAG_EDIT_TIME_BE_LEN sizeof(ht_tag_edit_time)#define HT_TAG_EDIT_TIME_BE_VLEN (19)#define HT_TAG_EDIT_TIME_BE_SIZE (4)#define HT_STATICTAG_EDIT_TIME_BE 0x9a#define HT_STATICTAG_EDIT_TIME_BE_CH "\e\x9a"#define HT_TAG_EDIT_TIME_LE 0x1b#define HT_TAG_EDIT_TIME_LE_LEN sizeof(ht_tag_edit_time)#define HT_TAG_EDIT_TIME_LE_VLEN (19)#define HT_TAG_EDIT_TIME_LE_SIZE (4)#define HT_STATICTAG_EDIT_TIME_LE 0x9b#define HT_STATICTAG_EDIT_TIME_LE_CH "\e\x9b"#define HT_TAG_EDIT_TIME_VE 0x1c#define HT_TAG_EDIT_TIME_VE_LEN sizeof(ht_tag_edit_time)#define HT_TAG_EDIT_TIME_VE_VLEN (19)#define HT_TAG_EDIT_TIME_VE_SIZE (4)#define HT_STATICTAG_EDIT_TIME_VE 0x9c#define HT_STATICTAG_EDIT_TIME_VE_CH "\e\x9c"struct ht_tag_edit_time { byte escape; byte magic; FileOfs offset;} PACKED;/* EDIT-CHAR-TAG */#define HT_TAG_EDIT_CHAR 0x1d#define HT_TAG_EDIT_CHAR_LEN sizeof(ht_tag_edit_char)#define HT_TAG_EDIT_CHAR_VLEN (1)#define HT_TAG_EDIT_CHAR_SIZE (1)#define HT_STATICTAG_EDIT_CHAR 0x9d#define HT_STATICTAG_EDIT_CHAR_CH "\e\x9d"struct ht_tag_edit_char {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -