This is my simple C source code in org-mode.
#+name: hello_one.c #+begin_src C :noweb tangle :tangle hello_one.c #include <stdio.h> int main() { printf("Hello, world!\n"); reurn 0; } #+end_src
Perhaps I can break it all down into many blocks.
#+name:hello.c #+begin_src C :noweb tangle :tangle hello.c <<include>> <<main>> #+end_src #+name: include #+begin_src C #include <stdio.h> #+end_src #+name: main #+begin_src C int main() { printf("Hello, world!\n"); reurn 0; } #+end_src
I can successfully link it to the source code "hello.c", and I can successfully weave it into an html document. But I would like to have an HTML binding, as you see in the LiteratePrograms wiki . One example is an article on Fibonacci numbers .
As you can see on this page, you can click each piece name (for example, 'includes',' fib ',' fastfib 'and' main.) And this will lead you to a description of this fragment.
And each description of the fragment has its own name, displayed at the beginning. For example, if you click on the 'fib' anchor in the LiteratePrograms article by the Fibonacci numbers, it brings you a description of the piece, and this piece starts with the name 'fib' piece.
Is there a way to implement these two functions?
source share