My First Post      My Facebook Profile      My MeOnShow Profile      W3LC Facebook Page      Learners Consortium Group      Job Portal      Shopping


Sunday, May 14, 2017

Using Github ReadMe opened programatically : How to open and read the file dynamically

It is noteworthy to understand that HTML does work in the file. With this clear understanding, I guess many of such questions would be automatically answered like - how to make bold font in ReadMe file, or how to insert image etc. Also note that it depends a lot on what application/ text editor you are using and also lot on the OS. 

Recently I had trouble in inserting blank line character in the file of Github. I personally preferred < br /> tag there, and i have a full post describing the same:

I have demonstrated the change in a git commit in the Github repository explained in the post. See:

This understanding was much needed to handle the question and also to find many other uses of why you would probably need to do it!

Further, to answer the question straight, you need two steps: 

1. Find the Url for the file in Raw version. For example see one: 

How to open Raw view of file: ( See screenshot )

2. Now if you want to use server side the using file_gets_content etc of php you can load the url. Or, if you want to use jquery, you can use the Load().

** Do, also notice that if you do View Source of the Raw URL page, you just see, plain text. So, you don't need to do much text parsing stuffs as well :) This is a good news.

** Next you can use unescape functions or tools like codebeautify to unescape the characters that can alter with the look and feel of your HTML like ' <   " etc etc.

Using Github ReadMe opened programatically : How to open and read the file dynamically:

To create sophisticated formatting for your prose and code on GitHub with simple syntax, you can refer the basic writing and formatting syntax at:

Have a great Day dear :)

@Anwar Jamal Faiz

No comments:

Post a Comment