/* This comment is very long, longer than 100. It must be folded if this file is converted to latex. Because latex doesn't care about verbatim lines. The lines are printed as they are. */
#include <stdio.h>
void
printf_something(char*something){
printf("%s\n",something);
}
int
main(intargc,char**argv){
printf_something("Hello world.");
}
EOS
sample_h=<<'EOS'
#include <gtk/gtk.h>
EOS
sample_rb=<<'EOS'
print"Hello ruby.\n"
EOS
rakefile=<<'EOS'
taskdefault:"a.out"
file"a.out"=>"sample.c"do
sh"gcc sample.c"
end
EOS
sample_xml=<<'EOS'
<divclass="h1"color="red">Fatalerror!!</div>
EOS
sample_ui=<<'EOS'
<objectclass="GtkWindow"id="win"></object>
EOS
sample_y=<<'EOS'
program:statement|programstatement;
EOS
sample_lex=<<'EOS'
[a-zA-Z0-9]returnALNUM;
EOS
sample_build=<<'EOS'
project('sampe','c')
EOS
sample0_md=<<'EOS'
# Sample text in maridown language
EOS
makefile=<<'EOS'
a.out:sample.c
ccsample.c
EOS
sample_src_md=<<'EOS'
# Sample.src.md
This.src.mdfileismadeforthetestforlib_src2md.rb.
Sample.cwithlinenumberis:
@@@include
sample.c
@@@
ThefollowingisalsoSample.cwithlinenumber.
@@@include-n
sample.c
@@@
ThefollowingisSample.cwithoutlinenumber.
@@@include-N
sample.c
@@@
Thefollowingprintsonly`printf_something`.
@@@include
sample.cprintf_something
@@@
Thefollowingprints`printf_something`and`main`.
@@@include
sample.cprintf_somethingmain
@@@
Checkinfostring.
@@@include
sample.c
sample.h
sample.rb
Rakefile
sample.xml
sample.ui
sample.y
sample.lex
sample.build
sample0.md
@@@
Compilesample.cwithrakelikethis:
@@@shell
rake
@@@
@@@shell
echo"This text is very long, longer than 100. It must be folded if this file is converted to latex. Because latex doesn't care about verbatim lines. The lines are printed as they are."
#{i=1;sample_c.lines.each {|line| line.replace(sprintf("%#2d %s", i, line)); i+=1}.join}~~~
ThefollowingisalsoSample.cwithlinenumber.
~~~C
#{i=1;sample_c.lines.each {|line| line.replace(sprintf("%#2d %s", i, line)); i+=1}.join}~~~
ThefollowingisSample.cwithoutlinenumber.
~~~C
#{sample_c}~~~
Thefollowingprintsonly`printf_something`.
~~~C
1void
2printf_something(char*something){
3printf("%s\\n",something);
4}
~~~
Thefollowingprints`printf_something`and`main`.
~~~C
1void
2printf_something(char*something){
3printf("%s\\n",something);
4}
5
6int
7main(intargc,char**argv){
8printf_something("Hello world.");
9}
~~~
Checkinfostring.
~~~C
#{i=1;sample_c.lines.each {|line| line.replace(sprintf("%#2d %s", i, line)); i+=1}.join}~~~
~~~C
#{i=1;sample_h.lines.each {|line| line.replace(sprintf("%#1d %s", i, line)); i+=1}.join}~~~
~~~ruby
#{i=1;sample_rb.lines.each {|line| line.replace(sprintf("%#1d %s", i, line)); i+=1}.join}~~~
~~~ruby
#{i=1;rakefile.lines.each {|line| line.replace(sprintf("%#1d %s", i, line)); i+=1}.join}~~~
~~~xml
#{i=1;sample_xml.lines.each {|line| line.replace(sprintf("%#1d %s", i, line)); i+=1}.join}~~~
~~~xml
#{i=1;sample_ui.lines.each {|line| line.replace(sprintf("%#1d %s", i, line)); i+=1}.join}~~~
~~~bison
#{i=1;sample_y.lines.each {|line| line.replace(sprintf("%#1d %s", i, line)); i+=1}.join}~~~
~~~lex
#{i=1;sample_lex.lines.each {|line| line.replace(sprintf("%#1d %s", i, line)); i+=1}.join}~~~
~~~meson
#{i=1;sample_build.lines.each {|line| line.replace(sprintf("%#1d %s", i, line)); i+=1}.join}~~~
~~~markdown
#{i=1;sample0_md.lines.each {|line| line.replace(sprintf("%#1d %s", i, line)); i+=1}.join}~~~
Compilesample.cwithrakelikethis:
~~~
$rake
~~~
~~~
$echo"This text is very long, longer than 100. It must be folded if this file is converted to latex. Because latex doesn't care about verbatim lines. The lines are printed as they are."
$echo"This text is very long, longer than 100. It must be folded if this file is converted to latex. Because latex doesn't care about verbatim lines. The lines are printed as they are."
$echo"This text is very long, longer than 100. It must be folded if this file is converted to latex. Because latex doesn't care about verbatim lines. The lines are printed as they are."