Skip to content

Commit 2bd479c

Browse files
committed
chore: add step to include example selector for new language in esquerySelectorPlaceholder
1 parent b421c74 commit 2bd479c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

docs/adding-languages.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Add an SVG logo into the `public/languages/` directory.
2323
1. Default the default code for the new language (such as `defaultJsonCode` or `defaultCssCode`).
2424
1. Add an entry in the `defaultCode` variable for the new language's default code.
2525
1. Export a variable containing the default options for the new language (such as `defaultJsonOptions` or `defaultCssOptions`).
26+
1. Add an entry to the `esquerySelectorPlaceholder` constant for the new language, using an appropriate example selector.
2627

2728
## Step 4: Update `src/hooks/use-explorer.ts` (yes, again)
2829

0 commit comments

Comments
 (0)