all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Using htmlize.el with linum-mode
Date: Thu, 19 May 2011 15:05:15 -0700 (PDT)	[thread overview]
Message-ID: <9f8dd80e-9b26-4b7d-b94f-fbaf9e1dc331@22g2000prx.googlegroups.com> (raw)
In-Reply-To: f3a74143-e15b-451c-a4bf-67c834e3fedb@r20g2000yqd.googlegroups.com

On May 12, 5:22 pm, chengiz <chen...@my-deja.com> wrote:
> Is it possible to use htmlize.el such that line numbers in the source
> code also show up in the html? Thank you.

i don't think so because the line numbers in the margin is not part of
buffer text, and htmlize works with buffer text.

google's code prettify might be able to do it
http://xahlee.org/js/google-code-prettify/index.html

also, i don't think it's too hard to write a js so it adds line
numbers to pre blocks.

 Xah


  reply	other threads:[~2011-05-19 22:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-13  0:22 Using htmlize.el with linum-mode chengiz
2011-05-19 22:05 ` Xah Lee [this message]
2011-05-24 17:16   ` Rolando Pereira

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9f8dd80e-9b26-4b7d-b94f-fbaf9e1dc331@22g2000prx.googlegroups.com \
    --to=xahlee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.