8000 GitHub - jhunt/lispy: Highlighting Lisp code from Javascript
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jhunt/lispy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lispy.js

lispy is a lightweight syntax highlighter for embeddind (Common) Lisp code in HTML web pages, and having it render all pretty-like in non-monochrome browsers.

To use it, include the lispy.js (or, at your option, lispy.min.js) in your page, link in the provided CSS stylesheet, and register an event handler to fire.

<script>
document.addEventListener('DOMContentLoaded',
  () => lispy(document.querySelectorAll('.lispy code')))
</script>

If you use the above code, wrap your Lisp code fragments in something like this:

<pre class="lispy"><code>(defun hello (who)
  (format t "Hello, ~a!~%" who))</code></pre>

... which will look a little something like this:

Screenshot of Hello World Program

About

Highlighting Lisp code from Javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0