Created
January 12, 2014 22:43
-
-
Save mishadoff/8391672 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs=require('fs'); | |
var hljs=require('highlight.js'); | |
fs.readFile('D:/temp/code/345.txt','utf-8',function(err, content){ | |
if (err) throw err; | |
langEntry = hljs.highlightAuto(content); | |
console.log(langEntry.language); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment