-
Notifications
You must be signed in to change notification settings - Fork 27
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
Clear tutorial or documentation how to add new language #130
Comments
You’re right, the README needs an update. To answer your question though, all it should take is to install the extension and list it in the |
I'm confuse where to register these "code fence tags" to be detected by the gatsby-remark-vscode? It is something via alias in gatsby-config or automatically made from the extension developer? |
Ok I tried to follow base on what the ReadMe says.
Then made a simple script with kotlin as lanugage inside my markdown file:
Still the language not detected, am I missing something? |
Ah, ok, I guess there is a bug here. The problem is that extension registers both |
Cool thanks it is working now!! |
README still needs some work 😄 |
Thanks @garlen-javier @andrewbranch, was looking for kotlin syntax support for a while. you save my time! |
Hi @andrewbranch Im working with gatsby 4 and remark vscode 3.3.1, this still not work in my kotlin code. Im using mdx for blog type
|
I also tried adding support for Dart, which unfortunately does not seem to work: remarkPlugins: [
[
require('gatsby-remark-vscode').remarkPlugin,
{
theme: {
default: 'Material Theme',
// dark: '',
},
inlineCode: {
marker: '•',
theme: {
default: 'Material Theme',
// dark: 'Default Dark+',
},
},
extensions: [`${__dirname}/vendor/material-theme.vsix`, 'Dart'],
},
], Also tried simply: remarkPlugins: [
[
require('gatsby-remark-vscode').remarkPlugin,
{
extensions: ['Dart'],
},
],
] But it bugs out with error:
Using |
@andrewbranch would you have any suggestions? Stumbled upon #69 - not sure if it's related |
The ReadMe or tutorials only tells how to add new themes but there is no clear tutorials how to add new languages, not to mention in only support 55 language compare to prism which is around 250. I would like to add Kotlin and Dart to the languages but I’m not sure how will I map multiple languages to the extension without removing my custom theme.
The text was updated successfully, but these errors were encountered: