Documentation #1412

Feature #861: === Website & Examples ===

avoid horizontal scrolling in code examples

Added by wuttke over 3 years ago. Updated almost 3 years ago.

Status:ArchivedStart date:17 Feb 2015
Priority:LowDue date:
Assignee:wuttke% Done:

100%

Category:-
Target version:Sprint32

Description

Some Python examples have some really long lines.
To read them, one needs to scroll horizontally.
But some examples are really long, so the scroll bar is far away from the line we want to look at.
This is quite inconvenient.


Subtasks

Bug #971: Drupal: horizontal scrollbar hides underscore character in long linesResolved

History

#1 Updated by wuttke over 3 years ago

two things to do:
  • decrease font size by one; determine maximum number of characters per line
  • rework examples to comply with above determined maximum number of characters per line

#2 Updated by wuttke over 3 years ago

no clue how to change the font size -> http://drupal.stackexchange.com/questions/202612/

#3 Updated by wuttke over 3 years ago

  • Status changed from New to In Progress

Clue from stackexchange: syntaxhighlighter style can be overwritten in our theme's CSS: in

/www/apps/drupal/sites/all/themes/bornagain_theme/bornagain.css

I just added

.syntaxhighlighter { font-size: 12px !important; }

#4 Updated by wuttke over 3 years ago

develop 4b2a125 provides tool dev-tools/code-tools/count-line-length.py

#5 Updated by wuttke about 3 years ago

  • Assignee set to wuttke
  • Target version set to Sprint32

#6 Updated by wuttke about 3 years ago

  • Status changed from In Progress to Resolved
Resolved
  • by enforcing maximum line width of 85 through functional test PyExamplesLineLength, and
  • by migrating all or almost all examples from Drupal to LaTeX.

#7 Updated by herck almost 3 years ago

  • Status changed from Resolved to Archived

Also available in: Atom PDF