Closed jdblischak closed 9 years ago
I believe that {.r}
should work - if it doesn't, I'll fix it.
@jdblischak Pandoc supports the following keys to mark the source code language:
abc
actionscript
ada
agda
apache
asn1
asp
awk
bash
bibtex
boo
c
changelog
clojure
cmake
coffee
coldfusion
commonlisp
cpp
cs
css
curry
d
diff
djangotemplate
dockerfile
dot
doxygen
doxygenlua
dtd
eiffel
email
erlang
fasm
fortran
fsharp
gcc
glsl
gnuassembler
go
haskell
haxe
html
ini
isocpp
java
javadoc
javascript
json
jsp
julia
latex
lex
lilypond
literatecurry
literatehaskell
lua
m4
makefile
mandoc
markdown
mathematica
matlab
maxima
mediawiki
metafont
mips
modelines
modula2
modula3
monobasic
nasm
noweb
objectivec
objectivecpp
ocaml
octave
opencl
pascal
perl
php
pike
postscript
prolog
pure
python
r
relaxng
relaxngcompact
rest
rhtml
roff
ruby
rust
scala
scheme
sci
sed
sgml
sql
sqlmysql
sqlpostgresql
tcl
tcsh
texinfo
verilog
vhdl
xml
xorg
xslt
xul
yacc
yaml
zsh
I checked what the novice-shell repo did. They labeled the input code cells as
{.input}
. However this results in black text (ex), unlike the green text in the Python lessons (ex).
My fault, check 4744316a29e0d747d01fafa4049e4fbb2984262f. I wasn't careful to keep back compatibility. #111 should fix this issue. @gvwilson or @twitwi could you take a look and press the green button if OK?
Ok, thanks. {.r}
does work. I will implement that into the workflow for building topic pages from R Markdown source files.
@r-gaia-cs, that list is very helpful. Do you have a link to it? Could you add a note in the documention that would direct people writing non-Python lessons to this information?
that list is very helpful. Do you have a link to it?
The best way to get it is pandoc --version
as you can find in
http://pandoc.org/README.html#fenced-code-blocks.
Could you add a note in the documention that would direct people writing non-Python lessons to this information?
Sure.
In the documentation for creating lessons, it has the input code with the label
{.python}
and the output code with the label{output}
. There is no advice on how to label input cells containing other languages (e.g. R, MATLAB).I checked what the novice-shell repo did. They labeled the input code cells as
{.input}
. However this results in black text (ex), unlike the green text in the Python lessons (ex).