Skip to content

docs: add step with example selector for new language #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/adding-languages.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Add an SVG logo into the `public/languages/` directory.
1. Default the default code for the new language (such as `defaultJsonCode` or `defaultCssCode`).
1. Add an entry in the `defaultCode` variable for the new language's default code.
1. Export a variable containing the default options for the new language (such as `defaultJsonOptions` or `defaultCssOptions`).
1. Add an entry to the `esquerySelectorPlaceholder` constant for the new language, using an appropriate example selector.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great if we could actually link to where exactly this is in code? That would be better for someone newly exploring the repo? WDYT


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

Expand Down