-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Option to show solution after completing an exercise. #2064
Comments
You mean show it in the terminal instead of just showing the path as a link? I am not sure if I like that option, especially because of long files. Maybe in a pager? |
Pager works |
I considered this feature, but unfortunately, it would mean adding a huge library like syntect for syntax highlighting. It also hides the advantages of having a language server for reading the docs of used items in the solution. "Go to definition" is also very useful if someone wants to take a deeper look at how an std function works. That being said, I tried to highlight the solution in e7ba88f. Note that the shown path to the solution file is a terminal link. So you can click on it to open the solution file in your favorite editor :) |
Is it OK, to add an option to show solution after completing an exercise.
I will be interested in implementing it. If acceptable.
The text was updated successfully, but these errors were encountered: