Any lisp code highligher for wordpress - wordpress

I have a personal Wordpress page and plan to post lisp codes. By default Wordpress does not support code highlighter for lisp. Any recommendations?

I've been using Google Code Prettify with a custom version of lang-lisp.js. It's been working great so far.
For an example usage, see a random Lisp-related article pulled from my archives.

I've been using a combination of Syntaxhighlighter Evolved for general highlighting and a slightly modified version of Brian Carper's brush for Clojure. Brian also has a nice color scheme that matches pretty closely the coloring I use in emacs.

You can always use gist which has an option to be embedded in any html page.

Related

Stylish and beautiful screenshots of R code

I found several screenshots of R code like I show below, on Twitter and sometimes on Facebook. I wonder how people do it, because it can use also in Powerpoint or Beamer presentations. The code in the following screenshots are irrelevant for this question, I'm only wandering how to prepare or stylised those.
Thanks.
These are usually generated via third-party services such as Carbon. It's pretty straight-forward and you can customize all kinds of things like background color and code highlighting.
Feel free to check out their About section and their GitHub.

How to deprecate a page in Trac?

Some Wiki have a feature to deprecate a page, for example by using templates. I searched on the Trac website and with a google search, without success.
How does one accomplish this in Trac?
I received an answer on the Trac mailing list by Ryan J Ollos:
There are currently no plugins that implement the feature as far as I know, but it would be fairly straightforward to implement. On trac-hacks.org we use a WikiExtras box macro and tag the page as deprecated. Example:
https://trac-hacks.org/wiki/AdminEnumListPlugin
I report here the relevant source code of the page he linked:
{{{#!box warn
**Notice:** This plugin is deprecated in Trac 1.2 and later.
}}}
To be able to tag, one needs the TagsPlugin.

How to display ELM code snippets in a WordPress blog?

I'm looking for a WordPress Plugin, or any other way to display ELM code in my blog. I tried to use Crayon, but since it has no special support for elm, the code is colored wrong.
How can I do so?
This https://runelm.io/new provides a way to embed runnable snippets of Elm code on an Elm website. I don't know how easy to do this is because I haven't tested it but the example they give looks promising.

Formatting Java code in WordPress posts, like in Eclipse

I am about to write some posts which has some Java code, and I would like to format it properly by coloring the Java keywords. Like in Eclipse.
I am looking for some recommendation for a theme / plugin to use.
It looks like it's rather standard nowadays:
[code language="css"]
Your code here
[/code]
As described here by WordPress itself.
The Chili code formatter is a good WordPress plugin to do that.
Alternative link: WP Chili
You could have some other plugins with this page or this other one.
However, it has not been updated for since 2010. Maybe you should use much recent one like the WP Code plugin.
It seems new versions of WordPress have already included the support of code posting. It is very interesting for me too, LOL.

Style a code snippet with css

Could someone give me a link, a tutorial or an already made css template for styling code snippet to add that feature to my blog ?
I seen examples in numerous blogs, but, now that i am searching for one, i can't put hands on it !
I want to be able to post a code snippet with keyword coloration, line numbers etc..
Many thanks in advance.
EDIT : i know there are some solution like prettify (thanks Developer Art) or SyntaxHighliter but i am on a platform and i can't use Javascript
Prettify is what you're looking for.
You include a bunch of JavaScript and CSS files to your pages and mark page sections that need to be prettified. Pretty much it.
manoli.net offers an online copy/paste syntax highlighter:
This tool allows you to format your
C#, VB, HTML, XML, T-SQL or MSH (code
name Monad) code for publishing on a
web site or in a blog.
The output conforms to the HTML 4.01
specification and is color-coded to
make it easier to read. The colors can
be changed by modifying the CSS style
sheet. See a sample.
And you may want to check out the Syntax Highlighter project on CodePlex (not sure how much activity it still has, though):
Syntax highlighter converts code text
to HTML where common language elements
are formatted using style sheet
classes such that the coloring scheme
can be switched or altered as simple
as replacing a CSS file. The primary
release ships as an extension for
BlogEngine.NET.
There are server side solutions for this as well, which of course depend on your server language. PHP is the ever popular choice for blogs, in which case you could use the equally popular GeSHi library.

Resources