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
* kick expiration back by increment on each view
* Add file extensions ourselves to push state
* Proper markdown highlighting
* Better about page text
* get staticCache back in
* add feedback for errors to UI - esp. too long
* html escape everything
# shared version only
* 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',
lua: 'lua', pas: 'delphi', java: 'java', cpp: 'cpp', cc: 'cpp', m: 'objectivec',
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

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>
<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"/>
<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="ZeroClipboard.min.js"></script>

View File

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