Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is GitHub's character limit, or line length for viewing files on GitHub?

Tags:

github

I simple wanted to know how many characters can be viewed without overflow (horizontal scrolling) on any GitHub source view page.

like image 425
ThorSummoner Avatar asked Mar 05 '14 19:03

ThorSummoner


People also ask

How long should HTML lines be?

Avoid lines longer than 80 characters. When a statement will not fit on a single line, it may be necessary to break it.

How long should JavaScript lines be?

JavaScript Learn JavaScript Quick Course Beginners Try to keep the length of lines less than 80 characters. This would make the code easier to read. Best practice is to move to next line using break if JavaScript statements aren't fitting in a single line.


2 Answers

On OS X v10.9 (Mavericks):

  • Google Chrome: 125
  • Firefox: 122
  • Safari: 121
like image 91
cubuspl42 Avatar answered Oct 07 '22 14:10

cubuspl42


I attempted to simulate the font-family fall back with the web inspector

On Ubuntu:

  • Firefox: 126
  • Opera 12.16: 126

Screenshot of Github with Character counts

  • Chromium: 113

enter image description here

like image 33
ThorSummoner Avatar answered Oct 07 '22 12:10

ThorSummoner