diff --git a/documents/font-style-rules.md b/documents/font-style-rules.md index e69de29..b18c136 100644 --- a/documents/font-style-rules.md +++ b/documents/font-style-rules.md @@ -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 ` `. + +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]() \ No newline at end of file diff --git a/documents/font-style-rules_CN.md b/documents/font-style-rules_CN.md index 8c0fa52..bfbfd4f 100644 --- a/documents/font-style-rules_CN.md +++ b/documents/font-style-rules_CN.md @@ -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里的加粗文字。 \ No newline at end of file +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. 转义字符, 如 ` ` + +在 normal 和 Bold 版本中,依然**斜体**的字符有:markdown里的斜体文字。 + +### Underline +underline样式只用于标记未被调用的变量。 + +EN: [font-style-rules.md]() \ No newline at end of file