Pathology and Social Media
Pathology Tweets
Pathophysiology
Carcinogenesis, Hallmarks of Cancer
Pathology and Social Media
Pathology Tweets
Syntax Highlighting

Syntax Highlighting

Syntax highlight for R

  • gist github
  • Online syntax highlighter like TextMate
Online, wrapping text is missing
  • highlight-package {highlight}
1
devtools::install_github("romainfrancois/highlight")
2
library(highlight)
3
4
write(highlight( file = "SurvivalAnalysis.R", detective = lestrade ), "highlightlestrade.txt")
5
6
write(
7
highlight(file = "SurvivalAnalysis.R", detective = sherlock(lestrade)),
8
"highlightsherlock.txt")
9
10
?highlight
11
12
?hl_hook_source
Copied!
  • datacamp-light
  • Tutorial Package to convert R Markdown files to DataCamp Light HTML files
Useful for Rmd files
  • carbonate
Others (did not work in my hand):
  • SyntaxHighlighter
  • Automatically exported from code.google.com/p/google-code-prettify
  • R Fiddle
  • SyntaxHighlighter Brush for the R Language
  • highr: Syntax Highlighting for R Source Code

Syntax highlight for R

  • gist github
  • Online syntax highlighter like TextMate
Online, wrapping text is missing
  • highlight-package {highlight}
1
devtools::install_github("romainfrancois/highlight")
2
library(highlight)
3
4
write(highlight( file = "SurvivalAnalysis.R", detective = lestrade ), "highlightlestrade.txt")
5
6
write(
7
highlight(file = "SurvivalAnalysis.R", detective = sherlock(lestrade)),
8
"highlightsherlock.txt")
9
10
?highlight
11
12
?hl_hook_source
Copied!
  • datacamp-light
  • Tutorial Package to convert R Markdown files to DataCamp Light HTML files
Useful for Rmd files
  • carbonate
Others (did not work in my hand):
  • SyntaxHighlighter
  • Automatically exported from code.google.com/p/google-code-prettify
  • R Fiddle
  • SyntaxHighlighter Brush for the R Language
  • highr: Syntax Highlighting for R Source Code

Syntax Highlighting

  • gist github
  • Online syntax highlighter like TextMate
Online, wrapping text is missing
  • highlight-package {highlight}
1
devtools::install_github("romainfrancois/highlight")
2
library(highlight)
3
4
write(highlight( file = "SurvivalAnalysis.R", detective = lestrade ), "highlightlestrade.txt")
5
6
write(
7
highlight(file = "SurvivalAnalysis.R", detective = sherlock(lestrade)),
8
"highlightsherlock.txt")
9
10
?highlight
11
12
?hl_hook_source
Copied!
  • datacamp-light
  • Tutorial Package to convert R Markdown files to DataCamp Light HTML files
Useful for Rmd files
  • carbonate
Others (did not work in my hand):
  • SyntaxHighlighter
  • Automatically exported from code.google.com/p/google-code-prettify
  • R Fiddle
  • SyntaxHighlighter Brush for the R Language
  • highr: Syntax Highlighting for R Source Code