1
0
Fork 0
mirror of https://github.com/seejohnrun/haste-server.git synced 2024-11-01 03:21:21 +00:00

Proper markdown highlighting

This commit is contained in:
John Crepezzi 2011-11-27 23:39:09 -05:00
parent 481155194a
commit 2a3a9046d8
6 changed files with 11 additions and 9 deletions

View file

@ -3,10 +3,9 @@
* fix that chrome bug where it loads the doc twice * fix that chrome bug where it loads the doc twice
* kick expiration back by increment on each view * kick expiration back by increment on each view
* Add file extensions ourselves to push state * Add file extensions ourselves to push state
* Proper markdown highlighting
* Better about page text * Better about page text
* get staticCache back in
* add feedback for errors to UI - esp. too long * add feedback for errors to UI - esp. too long
* html escape everything
# shared version only # shared version only
* some way to do announcements easily (and use for ads) * some way to do announcements easily (and use for ads)

View file

@ -126,7 +126,8 @@ haste.extensionMap = {
xml: 'xml', html: 'xml', htm: 'xml', css: 'css', js: 'javascript', vbs: 'vbscript', xml: 'xml', html: 'xml', htm: 'xml', css: 'css', js: 'javascript', vbs: 'vbscript',
lua: 'lua', pas: 'delphi', java: 'java', cpp: 'cpp', cc: 'cpp', m: 'objectivec', lua: 'lua', pas: 'delphi', java: 'java', cpp: 'cpp', cc: 'cpp', m: 'objectivec',
vala: 'vala', cs: 'cs', sql: 'sql', sm: 'smalltalk', lisp: 'lisp', ini: 'ini', vala: 'vala', cs: 'cs', sql: 'sql', sm: 'smalltalk', lisp: 'lisp', ini: 'ini',
diff: 'diff', bash: 'bash', sh: 'bash', tex: 'tex', erl: 'erlang', hs: 'haskell' diff: 'diff', bash: 'bash', sh: 'bash', tex: 'tex', erl: 'erlang', hs: 'haskell',
md: 'markdown'
}; };
// Map an extension to a language // Map an extension to a language

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -4,11 +4,11 @@
<title>hastebin</title> <title>hastebin</title>
<link rel="stylesheet" type="text/css" href="http://yandex.st/highlightjs/6.1/styles/solarized_dark.min.css"/> <link rel="stylesheet" type="text/css" href="solarized_dark.css"/>
<link rel="stylesheet" type="text/css" href="application.css"/> <link rel="stylesheet" type="text/css" href="application.css"/>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script type="text/javascript" src="http://yandex.st/highlightjs/6.1/highlight.min.js"></script> <script type="text/javascript" src="highlight.min.js"></script>
<script type="text/javascript" src="application.min.js"></script> <script type="text/javascript" src="application.min.js"></script>
<script type="text/javascript" src="ZeroClipboard.min.js"></script> <script type="text/javascript" src="ZeroClipboard.min.js"></script>

View file

@ -51,7 +51,8 @@ pre .built_in,
pre .lisp .title, pre .lisp .title,
pre .identifier, pre .identifier,
pre .title .keymethods, pre .title .keymethods,
pre .id { pre .id,
pre .header {
color: #268bd2; color: #268bd2;
} }
@ -91,6 +92,7 @@ pre .deletion {
color: #dc322f; color: #dc322f;
} }
pre .tex .formula { pre .tex .formula,
pre .code {
background: #073642; background: #073642;
} }