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

syntax highlighting issues #983

Open
1 of 14 tasks
Udarthegreat opened this issue Jan 4, 2022 · 1 comment
Open
1 of 14 tasks

syntax highlighting issues #983

Udarthegreat opened this issue Jan 4, 2022 · 1 comment
Labels
Problem This is a problem in the archive or an implementation.

Comments

@Udarthegreat
Copy link

Udarthegreat commented Jan 4, 2022

Bug Report

Description

The 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:

  • coconut
  • LOLCODE?
  • Piet (the written part)
  • Whitespace
  • possibly emojicode
  • GNUPLOT

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to Iterated Function Systems (for example but any chapter with code will work if it has the language in question)
  2. Click on the language change drop down
  3. Change language to one of the above mentioned ones
  4. Scroll down until a code block comes up
  5. You will see that it is not syntax highlighted

Expected behavior

Again 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 .

Screenshots

I 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.

  1. GNUPLOT (domain coloring)
vs code AAA
gluplot_vs-code gluplot_AAA
  1. Coconut (Barnsley fern)
vs code AAA
coconut_vs-code coconut_AAA

Environment

  • OS: Windows
  • OS Version: 10.0.19043
  • Browser: Firefox (this should be the same across all browsers though and it would be an actual big problem if it was not)
  • Browser Version: 95.0.2

Additional context

There 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:

  • Julia
  • Common Lisp
  • C++
  • smalltalk

In general I feel that the syntax highlighting could be better across across the board.

For Algorithm Archive Developers

  • The bug can be reproduced
  • The bug can be fixed
  • There is a timeline to fix the bug
  • The bug has been fixed (Please link the PR)
@Udarthegreat Udarthegreat added the Problem This is a problem in the archive or an implementation. label Jan 4, 2022
@Udarthegreat
Copy link
Author

are there any other tags that should be added to this issue?
I was thinking discussion may work but I'm not certain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Problem This is a problem in the archive or an implementation.
Projects
None yet
Development

No branches or pull requests

1 participant