-
Notifications
You must be signed in to change notification settings - Fork 5
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
syntax highlighting #27
Comments
the post from the main AAA post: Bug ReportDescriptionThe issue is that syntax highlighting is either non existent or partially existent for many languages. This is not urgent in any way, it's more of a quality of life thing and an accessibility issue. It could be considered a accessibility issue because syntax highlighting makes it easier for individuals such as my self to read code, helping those that are Neurodivergent, or that have other similar issue. Also it is important to note that several languages already have full syntax highlighting and the fact that there is this difference can lead to an inconsistency between implementations because you can go from a language that has full to non when switching between languages in a single algorithm. The following are the languages that have no syntax highlighting:
Steps to ReproduceSteps to reproduce the behavior:
Expected behaviorAgain I would not classify this so much as expected behaviors but more as something nice to see. It would be nice for various reasons (only some of which were mentioned above) to have all languages be syntax highlighted in code blocks. I would be willing to elaborate more on my personal reasons for preferring syntax highlighting below in a response . ScreenshotsI have put together some side by side images of syntax highlighting on AAA vs. in vs code (vs code since that is my personal preferred text editor and thus is what I have on hand to compare to, I'm sure you could find something similar in atom, sublime, vim or any other text editor, that is just my personal choice). As a note I installed some plugins for certain lang's such as the official Julia plugin for Julia. Also I could not find a single implementation that had all of the implementations I wanted to show so I used different algorithms for some.
Environment
Additional contextThere are also several languages that technically have syntax highlighting but to a significantly lesser degree then would be nice to have. Some languages have certain key words or numbers highlighted but not others. Below I have compiled a list of some of the languages that could benefit from better syntax highlighting, though it is not all that extensive just a quick example list:
In general I feel that the syntax highlighting could be better across across the board. For Algorithm Archive Developers
|
As a note, the above repost of the main post on the AAA issue references some comments on that issue since I edited it a few times after original posting, I posting this comment here as a note for anyone in the future since as discussed in issue 22 it is ok if I keep them with the original framing in the repost. |
As mentioned in the following issue on the main AAA repo syntax highlighting is rather important for various reasons and it would be nice if all langs had syntax highlighting in the repo. I am placing this here for two reasons. the first and more important is that if this is to become the generator for the main AAA repo then syntax highlighting would be generated by this so it applies; and secondly it still is an important feature so it would be nice to have anyways and I have been trying to link some of the old issue from the AAA into this repo that I think are important. it would also be cool if like with themes the settings for the different colors would be available to be set in the main repo through something like CSS vars or a YML file or something like that, example below. sorry that there are no tags on this I dont know how to add those and dont think I can. As a final note I will be posting the original AAA post below this I just want to keep it separate.
The text was updated successfully, but these errors were encountered: