literate-programming

ctwill - mini indexes for cweb

不羁岁月 提交于 2021-02-19 23:25:11
问题 where can i download ctwill? The ftp.cs.stanford.edu/pub/ctwill/ site doesn't work for me, either is ftp://labrea.stanford.edu/pub/ctwill/. Thanks, Raoul 回答1: Try http://ftp.cs.stanford.edu/pub/ctwill/ instead. Now if only I could find TWILL (CTWILL's plain WEB predecessor), which is what I actually wanted... Note: The above URL does not appear to play very nicely with NAT, so if you're behind one, I guess you'll have to download it from somewhere else. Also, the Amiga port at http:/

ctwill - mini indexes for cweb

南楼画角 提交于 2021-02-19 23:24:59
问题 where can i download ctwill? The ftp.cs.stanford.edu/pub/ctwill/ site doesn't work for me, either is ftp://labrea.stanford.edu/pub/ctwill/. Thanks, Raoul 回答1: Try http://ftp.cs.stanford.edu/pub/ctwill/ instead. Now if only I could find TWILL (CTWILL's plain WEB predecessor), which is what I actually wanted... Note: The above URL does not appear to play very nicely with NAT, so if you're behind one, I guess you'll have to download it from somewhere else. Also, the Amiga port at http:/

Literate programming

旧时模样 提交于 2020-01-02 01:08:11
问题 Literate programming is a way of developing software where documentation comes first, then the coding. One writes the documentation of a code snippet, and then writes the implementation of the snippet. The visual appearance of the software source code would be a plain document like word, with code paragraphs in it. I am trying to convert the dev shop I work to use only literate programming, as it brings great advantages to code readability and maintenance. However, due to the lack of tools

Feature request for a text-editor with support for literate programming [closed]

好久不见. 提交于 2019-12-25 04:45:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 9 years ago . This is a feature request for the writers of Visual Studio and any other programmer's editor. Consider a literate program as follows: /* File Name: LiterateProgram.h */ // \begin{comment} #pragma once #include "myHeader.h" /* \end{comment} %\bigskip \begin{lstlisting} % */ class CSomeClass : public CSomeBase {

Export code block names in cweb or noweb style?

笑着哭i 提交于 2019-12-21 05:45:12
问题 When writing a literate program in Org mode, exporting is analogous to weaving in earlier literate programming tools such as cweb or noweb. Those tools would add a code block name to the woven (exported) output. In Org mode, it would look something like this: Org file: #+NAME: mycodeblock #+BEGIN_SRC language [Source code here] #+END_SRC Exported output: <mycodeblock>= [Source code here] I am wondering if there is any support in Org mode for exporting names of code blocks in this style. If

State of the Art for Clojure Documentation Tools [closed]

三世轮回 提交于 2019-12-20 09:28:41
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Over the last year or so I've seen various announcements on the Clojure discussion list and other places about tools for documenting Clojure code. These range from full-on literate programming systems like Marginalia, and the tool being used to create the book "Clojure in Small Pieces" (or even emacs org-mode), to

How to pipe input to a src_block as stdin ?

♀尐吖头ヾ 提交于 2019-12-10 14:48:56
问题 Consider the following snippet of perl in org-babel, which uses <STDIN> . ** Ans 2 #+begin_src perl :results output use Math::Trig; $rad = <STDIN>; $circumference = 2*pi*$rad; print "Circumference of circle is $circumference"; #+end_src Is it possible to pipe the input to this block from another block ? Say : #+begin_src text :name test-input 12.5 #+end_src 回答1: You can pass $rad directly to the perl script from a #+results block : see passing arguments to code blocks in the manual. That

Setting HTML meta elements with knitr

*爱你&永不变心* 提交于 2019-12-10 03:19:32
问题 I'm generating HTML reports using knitr, and I'd like to include author and generation date meta tags. My Rhtml page looks something like this. <html> <head> <meta name="author" content="<!--rinline Sys.getenv('USERNAME') -->"> <meta name="date" content="<!--rinline as.character(Sys.time()) -->"> </head> <body> </body> </html> Unfortunately, after I knit("test.Rhtml") , the HTML that knitr generates is <meta name="author" content="<code class="knitr inline">RCotton</code>"> <meta name="date"

Make the source code from one code block the input to another code block in Emacs org-mode

扶醉桌前 提交于 2019-12-10 01:56:48
问题 I'm getting started with org-mode and there's something I'd like to do that seems like it should be possible, but I'm having trouble figuring out. Let me describe the scenario: I have some SQL code that I want to execute on a remote server. I currently have a python script that takes SQL code as a string and does this for me. Without org-mode, my work flow would be to start with a file like so: echo "SELECT name, grade FROM students" >> basic_query.sql and then I'd run: $ python run_query.py