infews / keydown

An HTML5 presentation builder
MIT License
503 stars 66 forks source link

Syntax highlighting of HTML #27

Open tekumara opened 11 years ago

tekumara commented 11 years ago

How do I so syntax highlighting of HTML? This doesn't work:

``` html
    <!-- include jasmine source files here... -->
    <link rel="stylesheet" type="text/css" href="lib/jasmine-1.3.1/jasmine.css">

Nor 
    <!-- include jasmine source files here... -->
    <link rel="stylesheet" type="text/css" href="lib/jasmine-1.3.1/jasmine.css">
wikimatze commented 11 years ago

Have the same problem, it is not working with the default installation as the README says.

patrikjohansson commented 11 years ago

I got it working by using htmlmixed instead of html. The name htmlmixed comes from the CodeMirror library.

 ``` htmlmixed
     <!-- include jasmine source files here... -->
     <link rel="stylesheet" type="text/css" href="lib/jasmine-1.3.1/jasmine.css">


To get all existing modes just run `ls deck.js/extensions/codemirror/mode/` in your current keydown folder.