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

Manual type highlighting in a code block #193

Open
1 of 2 tasks
PoetaKodu opened this issue Mar 6, 2023 · 0 comments
Open
1 of 2 tasks

Manual type highlighting in a code block #193

PoetaKodu opened this issue Mar 6, 2023 · 0 comments
Assignees
Labels
bug Something isn't working difficulty: medium A typical task that maybe a bit time consuming or just requires to use a bit advanced algorithm. enhancement New feature or request est. time: < 1 week A loose time estimation of less than one week of work.
Milestone

Comments

@PoetaKodu
Copy link
Collaborator

PoetaKodu commented Mar 6, 2023

Default code highlighting is limited. Where possible we should add custom type hints to properly color a token.

Status

The problem

Example: Enemy token should be manually marked as a class name for better preview
Image

How it should be done:

// prism-push-types:Enemy
int main()
{
    Enemy boss;
}

Result preview:

Image

@PoetaKodu PoetaKodu self-assigned this Mar 6, 2023
@PoetaKodu PoetaKodu converted this from a draft issue Mar 6, 2023
@PoetaKodu PoetaKodu added this to the April 2023 milestone Mar 6, 2023
@PoetaKodu PoetaKodu added bug Something isn't working enhancement New feature or request difficulty: medium A typical task that maybe a bit time consuming or just requires to use a bit advanced algorithm. est. time: < 1 week A loose time estimation of less than one week of work. labels Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working difficulty: medium A typical task that maybe a bit time consuming or just requires to use a bit advanced algorithm. enhancement New feature or request est. time: < 1 week A loose time estimation of less than one week of work.
Projects
Status: Todo
Development

No branches or pull requests

1 participant