berniey / html5print

HTML5, CSS, Javascript Pretty Print
Other
30 stars 13 forks source link

How can auto detect input language (html/css/js) then return pretty code? #5

Open johnsmeeth opened 8 years ago

johnsmeeth commented 8 years ago

Hello sir. I am trying html5print in django. It' seem good, but how can make html5print auto detect input language then return pretty code. thanks man.

berniey commented 8 years ago

I think it already is doing that. If it is not working for you, try to use chardet as a short term fix. http://bit.ly/1VBL1L3

johnsmeeth commented 8 years ago

@berniey my mean is how to auto detect programming language (such as html or css or javascript) not human language.