Skip to content
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

Support of syntax highlighting #20

Open
homoky opened this issue Feb 18, 2021 · 0 comments
Open

Support of syntax highlighting #20

homoky opened this issue Feb 18, 2021 · 0 comments

Comments

@homoky
Copy link

homoky commented Feb 18, 2021

Hey,

great extension!!! I have been looking for this one for months!

It would be great if it would support auto syntax detection of pasted code and also to be able to make multiple "code blocks" with custom syntax.

Auto detection

import * as enumsData from './generated/enums.json';

export * from './generated/enums';
export { enumsData };

to be rendered like:

import * as enumsData from './generated/enums.json';

export * from './generated/enums';
export { enumsData };

Manual set

Example:

` ` `typescript
import * as enumsData from './generated/enums.json';

export * from './generated/enums';
export { enumsData };
` ` `

To be formated like:

import * as enumsData from './generated/enums.json';

export * from './generated/enums';
export { enumsData };

Inspiration: https://docs.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks

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

No branches or pull requests

1 participant