# Which editor is this print from?

Hi I received a print like this a few days ago, and I just loved the way the editor prints source code. If anyone knows which editor this is, please give me an answer

-

## migrated from stackoverflow.comSep 27 '10 at 19:24

This question came from our site for professional and enthusiast programmers.

question about a text editor, voting to move to superuser –  Ben Voigt Sep 27 '10 at 18:30
So you have no idea –  Anonymous Sep 27 '10 at 18:58

## 3 Answers

I am quite sure it is output from a2ps, which is simply a converter from plain text files to postscript. Some people use it as a standard filter applied automatically when printing plain text on printers.

-
+1 yes, a2ps looks like this –  sleske Sep 27 '10 at 21:35

I think its jedit.

EDIT: its not from jedit. But has appearantly about the same features wrt print formatting

-

I'm not familiar with printing from editors, but this might be LaTeX with the listings package. For example, this

\documentclass[a4paper,12pt]{scrartcl}
\usepackage{listings}

\begin{document}

\lstset{
language=python,
numbers=left,
frame=single,
title=exemplum
}

\begin{lstlisting}
import sys
import random

for x in range(10000):
result = 126
...

\end{lstlisting}
\end{document}


yields

I guess it can be tweaked to show a border around it and have the line numbers within the border. Don't know how to do it though.

-