Skip to content

Add Sline language support#7891

Open
shopline-developer wants to merge 1 commit intogithub-linguist:mainfrom
shopline-developer:add-sline-language
Open

Add Sline language support#7891
shopline-developer wants to merge 1 commit intogithub-linguist:mainfrom
shopline-developer:add-sline-language

Conversation

@shopline-developer
Copy link
Copy Markdown

Add Sline (.slt) markup language support. Sline is an HTML templating language used by the SHOPLINE e-commerce platform for storefront themes.

Description

Sline is a markup/templating language that extends HTML with template syntax ({{ }}, {{#if}}, filters like {{ value | filter() }}). It is used by merchants on the SHOPLINE platform to build and customize online store
themes.

Checklist:

  • I am adding a new language.
    • I have included a real-world usage sample for all extensions added in this PR:
      • Sample source(s):
        • Written specifically for this PR
      • Sample license(s):
        • MIT (same as Linguist)
    • I have included a syntax highlighting grammar: https://github.com/shoplineos/sline-textmate
    • I have added a color
      • Hex value: #5F9AE0
      • Rationale: Blue tone reflecting the SHOPLINE brand identity
    • I have updated the heuristics to distinguish my language from others using the same extension.
      • .slt is not used by any other language in Linguist, so no heuristics are needed.

References:

Developer documentation: https://developer.shopline.com/docs/sline/sline-overview

VS Code extension: https://marketplace.visualstudio.com/items?itemName=shopline-developer.shopline-developer-plugin

TextMate grammar: https://github.com/shoplineos/sline-textmate

NPM package: https://www.npmjs.com/package/@shoplineos/sline-textmate

Maintained by: https://shopline.com

Add Sline (.slt) markup language used by the SHOPLINE e-commerce
platform for storefront theming.

- Add language entry to languages.yml
- Add sline-textmate grammar via script/add-grammar
- Add real-world usage samples
@shopline-developer shopline-developer requested a review from a team as a code owner April 1, 2026 10:24
Copy link
Copy Markdown
Member

@lildude lildude left a comment

Choose a reason for hiding this comment

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

You've left off the first point from the PR template with the search result query that you are using to prove your language meets our usage requirements:

- [ ] The extension of the new language is used in hundreds of repositories on GitHub.com.
- Search results for each extension:
<!-- Replace FOOBAR with the new extension, and KEYWORDS with keywords unique to the language. Repeat for each extension added. -->
- https://github.com/search?type=code&q=NOT+is%3Afork+path%3A*.FOOBAR+KEYWORDS

Please add and fill this in. If your language is a long way from meeting our usage requirements (see the end of the CONTRIBUTING.md file), I recommend you close this PR and submit a new one when your language meets our usage requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants