- Last Updated: Tue Oct 11 16:01:47 PDT 2016
-
Parse specific syntax file and generate HTML from a given CSS file
-
Assume your have file called myfile.txt as following
[My Linux Commands] :grep --color -Hnris string *.java // Search string in all java files :history // Show Shell history `[ String str = "my string"; int len = str.length(); `]
-
You want to style it or put some nice colors on it
-
Install Haskell in your machine(I use Mac)
-
Clone the repo.
-
Goto your cloned directory and run following command
runhaskell geneHtml.hs mytext.txt myhtml.html
- myhtml.html will be generated and you can point your favour browser to the file
[ my title ]
// This is my comments
`[
myMax::[Int]->Int
myMax [] = 0
myMax [x] = x
myMax (x:xs) = if x > myMax xs then x else myMax xs
`]
:grep --color -Hnris string *.java
{{ src=path/image.png w=50% h=50% }}