emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Divya <divya@subvertising.org>
To: emacs-orgmode@gnu.org
Cc: yantar92@posteo.net
Subject: Re: [FEATURE] On line-numbers inside Org Babel Source Blocks.
Date: Fri, 09 Aug 2024 21:30:54 +0000	[thread overview]
Message-ID: <CE934B33-702A-45DF-9760-9E8B58714DA7@subvertising.org> (raw)
In-Reply-To: <afb5b33004fbef035c47c2b2560552b4@subvertising.org>

[-- Attachment #1: Type: text/plain, Size: 906 bytes --]

On 7 August 2024 13:59:16 GMT, divya@subvertising.org wrote:
>Hello, Org Mode!
>
>I've been using Org Mode for literate programming purposes, and would like to have line-numbers within `src` blocks. I am able to export the Org buffer and get the line-numbers, but I am unable to do the same with regards to just in Org buffers. I am aware of `org-edit-special`, but I would rather appreciate if I can just look at a piece of code and know how long it is. I believe a header argument can be useful in toggling this.
>
>Since the source blocks can already implement syntax highlighting, font and other means of interacting with displaying Babel source blocks, theoretically this shouldn't be that difficult to implement? I'd be glad to help implementing this feature, if I can be slightly guided on where to refer to look for in the codebase.
>
>Regards,
>
>Divya Ranjan
>

Any suggestions, Ihor?

[-- Attachment #2: Type: text/html, Size: 1234 bytes --]

  reply	other threads:[~2024-08-09 21:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-07 13:59 [FEATURE] On line-numbers inside Org Babel Source Blocks divya
2024-08-09 21:30 ` Divya [this message]
2024-08-10 15:15 ` Ihor Radchenko
2024-08-11  9:50 ` Phil Estival

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=CE934B33-702A-45DF-9760-9E8B58714DA7@subvertising.org \
    --to=divya@subvertising.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@posteo.net \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).