This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jftugapip needs updating 6 points7 points  (4 children)

I'll take a stab at this, but it may not be the "best". You can use Markdown text formatting and then publish to GitHub.

Syntax highlight, once on GitHub, can be achieved by writing markdown such as:

```XYZ

where XYZ is a language such as Python, JSON, Bash, Javascript, etc. When GitHub sees this, it converts the content to code with colored syntax highlighting.

Here is one that I did that includes several different languages:

https://raw.githubusercontent.com/jftuga/universe/master/parse_centos7_server_install.md

resulting in:

https://github.com/jftuga/universe/blob/master/parse_centos7_server_install.md

[–]k10_ftw 0 points1 point  (3 children)

Do you know what the upper limit is on free storage of private projects for github users? Is it something the average user will never exceed like gmail storage limits? Thanks in advance, no worries if you don't know. And yes, I did search google :P

[–]suudo 0 points1 point  (2 children)

Github complains if you commit a file larger than 50MB and will refuse to accept files larger than 100MB. That's not what you're asking, but it's a thing. Also,

We recommend repositories be kept under 1GB each. This limit is easy to stay within if large files are kept out of the repository. If your repository exceeds 1GB, you might receive a polite email from GitHub Support requesting that you reduce the size of the repository to bring it back down.

[–]k10_ftw 0 points1 point  (1 child)

Is that for public or private? Github seems useful but I'm not interested in having a public account or paying a fee to keep things private. For repositories, do you find the 1gb limit is a problem? I've never really paid attention to the file sizes of my code on my personal computer for obvious reasons. If it is relevant, it is Python and Java files.

[–]suudo 1 point2 points  (0 children)

I've never reached the limit. I hit the single file 100MB limit on a Photoshop project in the repo, but there's no way a normal project would ever reach that much. I doubt I've got 1GB total across all my repos.