Skip to content

Commit cf62a6d

Browse files
devvaannshabose
authored andcommitted
feat: add docs for emmet
1 parent a783e9b commit cf62a6d

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

docs/03-editing-text.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,30 @@ This section provides an overview of the core text and code editing features in
99

1010
---
1111

12+
## Emmet
13+
**Coming Soon...**
14+
15+
### Emmet in Markup Languages
16+
In **HTML**, **PHP** or HTML-like files such as **JSP**, when you type a valid Emmet abbreviation (for example: `ul>li`, `p`, or `!`), **Phoenix Code** displays a code hint with the abbreviation text and an Emmet icon. This icon indicates that the suggestion comes from Emmet. When you select the Emmet hint, the abbreviation is expanded into its full code snippet.
17+
<VideoPlayer
18+
src="https://docs-images.phcode.dev/videos/editing-text/emmet-html.mp4"
19+
/>
20+
21+
### Emmet in Stylesheet Languages
22+
Emmet also works in stylesheets (CSS, SCSS, Less). When you type an Emmet-expandable property, a list of default code hints appears with the Emmet suggestion at the top.
23+
<VideoPlayer
24+
src="https://docs-images.phcode.dev/videos/editing-text/emmet-css.mp4"
25+
/>
26+
27+
### Enabling/Disabling Emmet
28+
To enable or disable the **Emmet** feature, go to `Edit` > `Emmet`.
29+
30+
![Toggle Emmet feature](./images/editingText/toggle-emmet.png "Toggle Emmet")
31+
32+
Alternatively, you can also toggle the **Emmet** feature by updating the `emmet` property in the preferences file. [Click Here](#editing-preferences) to read on how to edit the preferences.
33+
34+
---
35+
1236
## Multi Cursor
1337
Using **Multi-Cursor**, you can place multiple cursors in different locations, allowing you to edit text simultaneously. This feature is especially useful for making quick, consistent changes across multiple lines or sections of a file.
1438

78.6 KB
Loading

0 commit comments

Comments
 (0)