# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.parapathology.com/computers/syntax-highlighting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
