Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add BibTeX to examples in README

  • Loading branch information...
commit 87d897066ccea07a16687c28e60c47f99c6a51fe 1 parent c5e5a63
@xolox authored
Showing with 35 additions and 0 deletions.
  1. +24 −0 README.md
  2. +2 −0  etc/demo.lua
  3. +9 −0 examples/entry.bib
View
24 README.md
@@ -82,6 +82,30 @@ LXSH is a collection of [lexers] [lexing] and [syntax highlighters] [highlightin
</td>
</tr>
<tr>
+ <th style="border-right:1px solid silver; text-align: right">BibTeX:</th>
+ <td style="border-right: 1px solid silver; border-bottom: 1px solid silver">
+ <a href="http://peterodding.com/code/lua/lxsh/examples/earendel/entry.bib.html">HTML</a>
+ <span style="color: silver">·</span>
+ <a href="http://peterodding.com/code/lua/lxsh/examples/earendel/entry.bib.pdf">PDF</a>
+ <span style="color: silver">·</span>
+ <a href="http://peterodding.com/code/lua/lxsh/examples/earendel/entry.bib.rtf">RTF</a>
+ </td>
+ <td style="border-right: 1px solid silver; border-bottom: 1px solid silver">
+ <a href="http://peterodding.com/code/lua/lxsh/examples/slate/entry.bib.html">HTML</a>
+ <span style="color: silver">·</span>
+ <a href="http://peterodding.com/code/lua/lxsh/examples/slate/entry.bib.pdf">PDF</a>
+ <span style="color: silver">·</span>
+ <a href="http://peterodding.com/code/lua/lxsh/examples/slate/entry.bib.rtf">RTF</a>
+ </td>
+ <td style="border-right: 1px solid silver; border-bottom: 1px solid silver">
+ <a href="http://peterodding.com/code/lua/lxsh/examples/wiki/entry.bib.html">HTML</a>
+ <span style="color: silver">·</span>
+ <a href="http://peterodding.com/code/lua/lxsh/examples/wiki/entry.bib.pdf">PDF</a>
+ <span style="color: silver">·</span>
+ <a href="http://peterodding.com/code/lua/lxsh/examples/wiki/entry.bib.rtf">RTF</a>
+ </td>
+ </tr>
+ <tr>
<th style="border-right:1px solid silver; text-align: right">Shell script:</th>
<td style="border-right: 1px solid silver; border-bottom: 1px solid silver">
<a href="http://peterodding.com/code/lua/lxsh/examples/earendel/gvim.sh.html">HTML</a>
View
2  etc/demo.lua
@@ -50,6 +50,8 @@ for _, formatter in ipairs { lxsh.formatters.html, lxsh.formatters.rtf, lxsh.for
demo('examples/prompt.lua', 'examples/' .. colors .. '/prompt.lua' .. formatter.extension, lxsh.highlighters.lua)
-- Highlight example C source code (also from my Lua/APR binding).
demo('examples/lua_apr.c', 'examples/' .. colors .. '/lua_apr.c' .. formatter.extension, lxsh.highlighters.c)
+ -- Highlight example BibTeX entry (from http://en.wikipedia.org/wiki/BibTeX#Examples).
+ demo('examples/entry.bib', 'examples/' .. colors .. '/entry.bib' .. formatter.extension, lxsh.highlighters.bib)
-- Highlight example shell script code (something random from my ~/bin).
demo('examples/gvim.sh', 'examples/' .. colors .. '/gvim.sh' .. formatter.extension, lxsh.highlighters.sh)
end
View
9 examples/entry.bib
@@ -0,0 +1,9 @@
+@Book{abramowitz+stegun,
+ author = "Milton {Abramowitz} and Irene A. {Stegun}",
+ title = "Handbook of Mathematical Functions with
+ Formulas, Graphs, and Mathematical Tables",
+ publisher = "Dover",
+ year = 1964,
+ address = "New York",
+ edition = "ninth Dover printing, tenth GPO printing"
+}
Please sign in to comment.
Something went wrong with that request. Please try again.