PrismJS / PrismJS/prism

Language Request: ssh-config

Open
#3,444 4 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue language-definitions new language
Dominant language
JavaScript
Stars
13k
Forks
1.4k
Avg merge
15h 36m
Merged PRs (30d)
3

Description

Language
This is the configuration file for sshd found inside ~/.ssh/config on most systems.

Additional resources
I found this issue that seems to have done the same thing for linguist which drives GitHub syntax highlighting - wondering if it can be added in Prism which drives syntax highlighting in my favourite MD editor (Obsidian).

EDIT: Additionally, some regex from https://github.com/Alhadis/language-etc/blob/master/grammars/ssh-config.cson may be reusable - can't be sure because I don't know the language, perhaps someone else can take a look.

Notes
If this syntax highlighting engine already exists (and I simply didn't find it), this request could be changed to be a request for an official alias to ssh-config to get some consistency for the same code uploaded to different platforms with different syntax highlighting engines.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by checking Prism's existing language definitions to see whether ssh-config support or an alias already exists. Compare the linked Linguist issue and the referenced language-etc grammar, then verify that the requested configuration syntax is highlighted consistently and that any new alias behaves as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
56/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.