Skip to content

Commit a05800f

Browse files
authored
docs: add step with example selector for new language (#106)
1 parent ef1ad52 commit a05800f

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(must match Language enum), using an appropriate example selector.
2627

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

0 commit comments

Comments
 (0)