Skip to content

Commit

Permalink
2.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
fisheva committed May 21, 2024
1 parent 37b5ab2 commit f5ef257
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 8 deletions.
28 changes: 28 additions & 0 deletions documents/font-style-rules.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
The special font styles of the Eva Theme include: bold, italic, underline.

### Bold
The bold style is used to emphasize important keywords.

In both Bold and Italic Bold versions, the font style for keywords or symbols that need to be set to bold includes:
1. Keywords that create, define, or declare meanings, such as `let` `const` `var`; or similar forms, such as `import`.
2. Boolean values `false` `true`; comparison symbols such as `==` `===` `>` `<`; and conditional keywords like `if` `else if` `else`.
3. Flow control keywords such as `for` `return` `export default`.
4. Function names, arrow function symbols `=>`.
5. Other important keywords, such as `this` `debugger` `delete` (JS), `!important` (CSS), `self` (Python).
6. Special cases where the bold style is retained even in the normal version: 1) bold text in markdown; 2) property access symbol dot `.`.

### Italic
The italic style is for users who prefer italic text, with the principle of making text italicized as much as possible without affecting the readability of the code.

In both Italic and Italic Bold versions, characters that are **normal** (not italic) include:
1. All punctuations.
2. HTML tags.
3. All characters within regular expressions.
4. Escape characters, such as `&nbsp;`.

In the normal and Bold versions, characters that remain **italic**: italic text in markdown.

### Underline
The underline style is only used to mark unused variables.

中文: [font-style-rules_CN.md]()
36 changes: 28 additions & 8 deletions documents/font-style-rules_CN.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
总体规则框架是:
1,在Bold版本中,以下几种情况的关键字或符号设置为bold样式
a. 拥有创建、定义、声明含义,例如let, const, var;或形式类似的关键字,如import。
b. 布尔值 false true; 比较式结果是布尔值的符号 如 == > <; 条件判断 if esle if
c. 流程控制 for return export default.
d. 函数名, 箭头函数 =>
e. 其它在该编程语言中,比较重要的关键字,如 this debugger delete(js), !important(css), self (Python)
f. 在normal版本下也保持bold样式的特例:1,读取符号点. 2,markdown里的加粗文字。
Eva Theme的特殊字体样式有 bold、italic、underline。

### Bold
bold样式用于增加关键字的醒目程度。

在 Bold 和 Italic Bold 版本中,字体样式要设为 bold 的关键字或符号有
1. 有创建、定义、声明含义,如 `let` `const` `var`;或形式类似的,如 `import`.
2. 布尔值 `false` `true`; 比较符号 如 `==` `===` `>` `<`; 条件语句 `if` `esle if` `else`.
3. 流程控制 如 `for` `return` `export default`.
4. 函数名, 箭头函数符号 `=>`.
5. 其它重要关键字,如 `this` `debugger` `delete` (js), `!important` (css), `self` (Python).
6. 特例,在normal版本下也保持bold样式的:1) markdown里的加粗文字; 2) 属性读取符号点`.`

### Italic
italic样式为偏爱斜体字的用户准备,原则是在不影响阅读代码观感的前提下,文字能斜尽斜。

在 Italic 和 Italic Bold 版本中,**不斜体**的字符有
1. 所有标点符号。
2. HTML标签。
3. 正则表达式内所有字符。
4. 转义字符, 如 `&nbsp;`

在 normal 和 Bold 版本中,依然**斜体**的字符有:markdown里的斜体文字。

### Underline
underline样式只用于标记未被调用的变量。

EN: [font-style-rules.md]()

0 comments on commit f5ef257

Please sign in to comment.