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

Add support for annotations that highlight only a subset of a line #158

Open
Luro02 opened this issue Jan 13, 2025 · 0 comments
Open

Add support for annotations that highlight only a subset of a line #158

Luro02 opened this issue Jan 13, 2025 · 0 comments

Comments

@Luro02
Copy link
Collaborator

Luro02 commented Jan 13, 2025

For IntelliGrade, it would be nice to be able to highlight only parts of a line.

This would be useful when you have multiple annotations in the same line. For example, here:

int four = 4;

We could have an annotation for the magic number 4 and one for the name which is a bad identifier.
Currently the entire line is highlighted, because artemis4j doesn't pass the autograder source positions to intelligrade.

I don't think artemis supports annotations that only span parts of a line, but they could be converted into a line number here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant