{"id":14068658,"url":"https://github.com/yihui/highr","last_synced_at":"2025-04-05T10:10:29.374Z","repository":{"id":9326231,"uuid":"11171186","full_name":"yihui/highr","owner":"yihui","description":"Syntax Highlighting for R Source Code","archived":false,"fork":false,"pushed_at":"2024-05-26T20:13:47.000Z","size":115,"stargazers_count":47,"open_issues_count":0,"forks_count":16,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-04T16:52:17.501Z","etag":null,"topics":["html","latex","r","r-package","syntax-highlighting"],"latest_commit_sha":null,"homepage":"https://cran.rstudio.com/package=highr","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yihui.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-07-04T08:32:18.000Z","updated_at":"2025-02-14T06:32:04.000Z","dependencies_parsed_at":"2023-11-09T00:30:41.269Z","dependency_job_id":"df1dbe0e-e09b-4f1c-b42a-71d5fd1f18a7","html_url":"https://github.com/yihui/highr","commit_stats":{"total_commits":152,"total_committers":4,"mean_commits":38.0,"dds":0.05921052631578949,"last_synced_commit":"b201a17849d70dca1a72f20de02c9e05104a1d6b"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yihui%2Fhighr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yihui%2Fhighr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yihui%2Fhighr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yihui%2Fhighr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yihui","download_url":"https://codeload.github.com/yihui/highr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318745,"owners_count":20919484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html","latex","r","r-package","syntax-highlighting"],"created_at":"2024-08-13T07:06:19.830Z","updated_at":"2025-04-05T10:10:29.352Z","avatar_url":"https://github.com/yihui.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# highr\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/yihui/highr/workflows/R-CMD-check/badge.svg)](https://github.com/yihui/highr/actions)\n[![CRAN release](https://www.r-pkg.org/badges/version/highr)](https://cran.r-project.org/package=highr)\n\u003c!-- badges: end --\u003e\n\n\nThis is an infrastructure R package for syntax highlighting. It supports\nLaTeX and HTML output. Not surprisingly, it works best with R code. It\nattaches markups onto source code, e.g., it turns\n\n```r\na \u003c- 1 # something\n```\n\ninto LaTeX code\n\n```latex\n\\hldef{a} \\hlkwb{\u003c-} \\hlnum{1} \\hlcom{\\# something}\n```\n\nor HTML code\n\n```html\n\u003cspan class=\"hl def\"\u003ea\u003c/span\u003e \u003cspan class=\"hl kwb\"\u003e\u0026lt;-\u003c/span\u003e \u003cspan class=\"hl num\"\u003e1\u003c/span\u003e \u003cspan class=\"hl com\"\u003e# something\u003c/span\u003e\n```\n\nvia\n\n```r\nlibrary(highr)\nhi_latex(\"a \u003c- 1 # something\")\nhi_html(\"a \u003c- 1 # something\")\n# or hilight(code, format = \"latex\"/\"html\")\n```\n\nThis package also has a wrapper function, `hi_andre()`, for Andre Simon's\n[Highlight](https://gitlab.com/saalen/highlight) package.\n\nThere are a few package Markdown vignettes in this package:\n\n```r\nbrowseVignettes(package = \"highr\")\n```\n\nTo install the development version here, use\n\n```r\ninstall.packages('highr', repos = 'https://yihui.r-universe.dev')\n```\n\nThis package is licensed under GPL, and was originally designed for serving other packages\nsuch as [**knitr**](http://yihui.org/knitr/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyihui%2Fhighr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyihui%2Fhighr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyihui%2Fhighr/lists"}