emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Links to C/C++ source code lines


From: Rafal
Subject: [O] Links to C/C++ source code lines
Date: Thu, 13 Oct 2011 15:44:18 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Hi,

I wrote a small hook for creating org-mode links to C/C++ source code lines in 
the form of a regexp so the links stay valid even if the source code changes

eg. 
a source line
        while(ptr < ptr_end)
has a link
file:/home/user/src/example.cpp::/while[ \t]*([ \t]*ptr[ \t]*<[ \t]*ptr_end[ \t]
*)#1/

The number after the hash is a sequence number in case there are more than one 
such line

If you are interested: http://rafflo.w.interia.pl/org-c-link.el

regards,
Rafal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]