Skip to content

Commit

Permalink
test code 自动换行,字号 wip #26
Browse files Browse the repository at this point in the history
  • Loading branch information
annProg committed Jun 10, 2019
1 parent 12e2e49 commit efcc103
Showing 1 changed file with 78 additions and 2 deletions.
80 changes: 78 additions & 2 deletions test/highlight/1.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@

\begin{Verbatim}[breaklines=true, breakanywhere=true]
LongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCode
\end{Verbatim}

see [@lst:test]

```{#lst:test .md .mathescape .numberLines startFrom="100" caption="Markdown 代码高亮测试"}
```{#lst:test .md .mathescape .numberLines breaklines=true breakanywhere=true startFrom="100" caption="Markdown 代码高亮测试"}
# Chapter 1
LongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCodeLongCode
长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码长代码
## Section 1
Strong **abc**
Expand All @@ -20,4 +29,71 @@ of an $n$-sided regular polygon circumscribing a
circle of diameter $d$.
*/
const double pi = 3.1415926535
```
```

```{#lst:vscode_snippet .json caption="VS Code 用户代码片段"}
"Columns": {
"prefix": "col",
"body": [
"::::: {.columns}",
"::: {.column}",
"$1",
":::",
"::: {.column}",
"$2",
":::",
":::::"
],
"description": "Columns"
},
"Code": {
"prefix": "cod",
"body": [
"```{#lst:$1 .$2 caption=\"$3\"}",
"$4",
"```"
],
"description": "Code"
},
"Environment": {
"prefix": "env",
"body": [
"::: {.$1}",
"$2",
":::"
],
"description": "fenced Div environment"
},
"Columns": {
"prefix": "col",
"body": [
"::::: {.columns}",
"::: {.column}",
"$1",
":::",
"::: {.column}",
"$2",
":::",
":::::"
],
"description": "Columns"
},
"Code": {
"prefix": "cod",
"body": [
"```{#lst:$1 .$2 caption=\"$3\"}",
"$4",
"```"
],
"description": "Code"
},
"Environment": {
"prefix": "env",
"body": [
"::: {.$1}",
"$2",
":::"
],
"description": "fenced Div environment"
}
```

0 comments on commit efcc103

Please sign in to comment.