We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mg/display.c
Line 330 in 32efa25
so I tried to implement a basic syntax highlighting by first trying to color in digits. I tried to utilize ANSI escape codes as follows
} else if (isprint(c)){ if (isdigit(c)){ char buf[5]; int clen = snprintf(buf, sizeof(buf), "\x1b[35m"); for(uint32_t i = 0; i < 5; ++i){ vp->v_text[vtcol++] = buf[i]; } vp->v_text[vtcol++] = c; clen = snprintf(buf, sizeof(buf), "\x1b[39m"); for(uint32_t i = 0; i < 5; ++i){ vp->v_text[vtcol++] = buf[i]; } } else vp->v_text[vtcol++] = c; }
but this does not seem to work as it only hides the digits and shrinks the modeline.
Anyone any idea on how to proceed here?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
mg/display.c
Line 330 in 32efa25
so I tried to implement a basic syntax highlighting by first trying to color in digits.
I tried to utilize ANSI escape codes as follows
but this does not seem to work as it only hides the digits and shrinks the modeline.
Anyone any idea on how to proceed here?
The text was updated successfully, but these errors were encountered: