Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

migrated from stackoverflow.com Sep 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 3

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.

share|improve this answer
    
+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

share|improve this answer

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 alt text

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.