Skip to content

Commit 2458a06

Browse files
committed
docs(en): merging all conflicts
2 parents 034f641 + 55df176 commit 2458a06

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

guide/editors.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@
4141
![](https://user-images.githubusercontent.com/11247099/116809994-cc2caa00-ab73-11eb-879f-60585747c3c9.png)
4242

4343
<TheTweet id="1395333405345148930" />
44+
45+
## Prettier Plugin
46+
47+
Slidev also provides a Prettier plugin to format your slides. You can use it with your favorite editor that supports Prettier. Docs for the plugin can be found [here](https://github.com/slidevjs/prettier-plugin).

guide/syntax.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,11 +444,36 @@ layout: two-cols
444444
<<< @/snippets/snippet.js
445445
```
446446

447+
<<<<<<< HEAD
447448
::: tip
448449
Η τιμή του `@` αντιστοιχεί στο root της πηγής, τον κατάλογο όπου βρίσκεται το αρχείο `slides.md`.
449450
:::
450451

451452
Αυτή η λειτουργία προσφέρεται από το VitePress, μάθετε περισσότερα γι' αυτό στην [ιστοσελίδα του VitePress](https://vitepress.dev/guide/markdown#import-code-snippets).
453+
=======
454+
:::tip
455+
The value of `@` corresponds to your package's root directory. It's recommended to put snippets in `@/snippets`, for compatibility with the Monaco editor. Alternatively, you can also import from relative paths.
456+
:::
457+
458+
You can also use a [VS Code region](https://code.visualstudio.com/docs/editor/codebasics#_folding) to only include the corresponding part of the code file:
459+
460+
```md
461+
<<< @/snippets/snippet.js#region-name
462+
```
463+
464+
To explicitly specify the language of the imported code, you can add a language identifier after:
465+
466+
```md
467+
<<< @/snippets/snippet.js ts
468+
```
469+
470+
Any code block features like [line highlighting](#line-highlighting) and [Monaco editor](#monaco-editor) are also supported:
471+
472+
```md
473+
<<< @/snippets/snippet.js {2,3|5}{lines:true}
474+
<<< @/snippets/snippet.js ts {monaco}{height:200px}
475+
```
476+
>>>>>>> 55df176a16c5693491d5823c68f1af798e1f718f
452477
453478
## Ρυθμίσεις
454479

0 commit comments

Comments
 (0)