arcade icon indicating copy to clipboard operation
arcade copied to clipboard

Highlights on long lines in code boxes end early

Open pushfoo opened this issue 2 years ago • 3 comments

Documentation Bug Report

Actual behavior:

Highlights do not cover the entirety of wide lines: image

Expected behavior:

Highlights extend the full width of the code box

Versions affected

3.0dev, 2.6.17, likely earlier versions

Steps to reproduce/example code:

  1. View any page with long highlighted lines in a codebox, such as the simple background example
  2. Scroll down to a highlighted line which is too long to fit on screen
  3. Scroll right to the right
  4. Observe the cutoff highlight

pushfoo avatar Feb 11 '23 20:02 pushfoo

Its not fixable. The best we can do is wrap them to 100 character per line. That would be alot of work, are you wiling to do it @pushfoo?

Ibrahim2750mi avatar Mar 26 '23 09:03 Ibrahim2750mi

That link doesn't explain why it isn't possible.

The best we can do is wrap them to 100 character per line.

I agree that this is probably the best approach in the short term.

pushfoo avatar Mar 27 '23 14:03 pushfoo

That link doesn't explain why it isn't possible.

About that, I think its a limitation with sphinx if you have seen the highlighted comment, also maybe we can try a custom style with sphinx to fix this as mentioned in the comments?

Ibrahim2750mi avatar Mar 27 '23 14:03 Ibrahim2750mi

https://github.com/pythonarcade/arcade/issues/2243

einarf avatar Jul 12 '24 14:07 einarf