Task: 3rd party grammar template repository
See original GitHub issueCopying in content from @tajmone at https://github.com/highlightjs/highlightjs-alan/issues/5#issuecomment-789643133
I think it would make sense if you created a repository template for custom HLJS syntaxes, which developers can use to create the codebase for their new languages.
The template would provide a boilerplate, with all the required files and directories structure (a sample language to use as a reference), repository settings (.giattributes
, .gitignore
, .editroconfig
, etc.) and a sample README.md
with instructions, which end users will only need to adapt to their new language (instructions for the developer, but also those for end users, as for this Issue).
This would simplify creating new languages for both newbies and experts alike, for with a single click they’d have a robust starting point, and newbies will also find the needed instructions.
At least, this is what I do when I’m dealing with commonly shared repository settings and structures, to avoid useless and repetitive tasks.
Furthermore, having an officially sanctioned template would dispel any confusion regarding the proper repository structure to adopt, since not all independent syntax repos are abiding to the same structure right now.
Issue Analytics
- State:
- Created 3 years ago
- Comments:28 (28 by maintainers)
I reviewed a few other template repos, it seems a lot are using README to explain how the template works and also including a
BLANK_README.md
file with placeholder text for the intended user to alter to suit their project. It is documented for the user to delete README, update BLANK_README and then rename BLANK_README to README. I’m going with this for the next update.@joshgoebel
based on my work on other language contributions and the 3rd party quick start, I’d like to put forward this proposal
https://github.com/jf990/highlightjs-language-template