Syntax Highlighting

Syntax Highlighting

Syntax highlight for R

  • gist github

https://gist.github.com/sbalci

  • Online syntax highlighter like TextMate

http://markup.su/highlighter/

Online, wrapping text is missing __

  • highlight-package {highlight}

https://github.com/romainfrancois/highlight

devtools::install_github("romainfrancois/highlight")
library(highlight)

write(highlight( file = "SurvivalAnalysis.R", detective = lestrade ), "highlightlestrade.txt")

write(
highlight(file = "SurvivalAnalysis.R", detective = sherlock(lestrade)),
"highlightsherlock.txt")

?highlight

?hl_hook_source
  • datacamp-light

https://github.com/datacamp/datacamp-light

  • Tutorial Package to convert R Markdown files to DataCamp Light HTML files

https://github.com/datacamp/tutorial

Useful for Rmd files

  • carbonate

https://yonicd.github.io/carbonate/

https://carbon.now.sh/

Others (did not work in my hand):

  • SyntaxHighlighter

https://github.com/syntaxhighlighter

  • Automatically exported from code.google.com/p/google-code-prettify

https://github.com/google/code-prettify

  • R Fiddle

http://old.r-fiddle.org

  • SyntaxHighlighter Brush for the R Language

https://yihui.name/en/2010/09/syntaxhighlighter-brush-for-the-r-language/

  • highr: Syntax Highlighting for R Source Code

https://cran.rstudio.com/web/packages/highr/index.html

https://github.com/yihui/highr

Syntax highlight for R

  • gist github

https://gist.github.com/sbalci

  • Online syntax highlighter like TextMate

http://markup.su/highlighter/

Online, wrapping text is missing __

  • highlight-package {highlight}

https://github.com/romainfrancois/highlight

devtools::install_github("romainfrancois/highlight")
library(highlight)

write(highlight( file = "SurvivalAnalysis.R", detective = lestrade ), "highlightlestrade.txt")

write(
highlight(file = "SurvivalAnalysis.R", detective = sherlock(lestrade)),
"highlightsherlock.txt")

?highlight

?hl_hook_source
  • datacamp-light

https://github.com/datacamp/datacamp-light

  • Tutorial Package to convert R Markdown files to DataCamp Light HTML files

https://github.com/datacamp/tutorial

Useful for Rmd files

  • carbonate

https://yonicd.github.io/carbonate/

https://carbon.now.sh/

Others (did not work in my hand):

  • SyntaxHighlighter

https://github.com/syntaxhighlighter

  • Automatically exported from code.google.com/p/google-code-prettify

https://github.com/google/code-prettify

  • R Fiddle

http://old.r-fiddle.org

  • SyntaxHighlighter Brush for the R Language

https://yihui.name/en/2010/09/syntaxhighlighter-brush-for-the-r-language/

  • highr: Syntax Highlighting for R Source Code

https://cran.rstudio.com/web/packages/highr/index.html

https://github.com/yihui/highr

Syntax Highlighting

  • gist github

https://gist.github.com/sbalci

  • Online syntax highlighter like TextMate

http://markup.su/highlighter/

Online, wrapping text is missing

  • highlight-package {highlight}

https://github.com/romainfrancois/highlight

devtools::install_github("romainfrancois/highlight")
library(highlight)

write(highlight( file = "SurvivalAnalysis.R", detective = lestrade ), "highlightlestrade.txt")

write(
highlight(file = "SurvivalAnalysis.R", detective = sherlock(lestrade)),
"highlightsherlock.txt")

?highlight

?hl_hook_source
  • datacamp-light

https://github.com/datacamp/datacamp-light

  • Tutorial Package to convert R Markdown files to DataCamp Light HTML files

https://github.com/datacamp/tutorial

Useful for Rmd files

  • carbonate

https://yonicd.github.io/carbonate/

https://carbon.now.sh/

Others (did not work in my hand):

  • SyntaxHighlighter

https://github.com/syntaxhighlighter

  • Automatically exported from code.google.com/p/google-code-prettify

https://github.com/google/code-prettify

  • R Fiddle

http://old.r-fiddle.org

  • SyntaxHighlighter Brush for the R Language

https://yihui.name/en/2010/09/syntaxhighlighter-brush-for-the-r-language/

  • highr: Syntax Highlighting for R Source Code

https://cran.rstudio.com/web/packages/highr/index.html

https://github.com/yihui/highr

Last updated