Clojure

((fn [x] (list x (list 'quote x))) '(fn [x] (list x (list 'quote x))))

Javascript


(function quine(){
    console.log('(' + quine.toString() + ')();');
	})();

HTML/CSS

Ruby

x = "x = %p; puts x %% x"; puts x % x

Scheme

((lambda (x)
   (list x (list (quote quote) x)))
     (quote
        (lambda (x)
         (list x (list (quote quote) x)))))

Python

Python’s %r format conversion uses the repr() function to return a string containing the source code representation of its argument:

x = 'x = %r\nprint(x %% x)'
print(x % x)

With the new str.format:

x = 'x = {!r};print(x.format(x))';print(x.format(x))