{"id":13425831,"url":"https://github.com/stla/prettifyAddins","last_synced_at":"2025-03-15T20:31:25.467Z","repository":{"id":56934179,"uuid":"294814769","full_name":"stla/prettifyAddins","owner":"stla","description":"RStudio addins to prettify JavaScript/HTML/CSS/Markdown/C++ and more.","archived":false,"fork":false,"pushed_at":"2023-09-14T09:29:40.000Z","size":2159,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-11T14:50:06.875Z","etag":null,"topics":["prettifier","r","rstudio-addins","shiny"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.note","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-09-11T21:22:39.000Z","updated_at":"2024-01-30T16:37:43.000Z","dependencies_parsed_at":"2024-01-12T20:56:31.185Z","dependency_job_id":"f408bae5-8ba8-43ad-bd03-405fe6edb60a","html_url":"https://github.com/stla/prettifyAddins","commit_stats":{"total_commits":123,"total_committers":1,"mean_commits":123.0,"dds":0.0,"last_synced_commit":"4791ebabdbbbdb53db41af530c75fedab52282c1"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2FprettifyAddins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2FprettifyAddins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2FprettifyAddins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2FprettifyAddins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stla","download_url":"https://codeload.github.com/stla/prettifyAddins/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790939,"owners_count":20348378,"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":["prettifier","r","rstudio-addins","shiny"],"created_at":"2024-07-31T00:01:19.953Z","updated_at":"2025-03-15T20:31:20.451Z","avatar_url":"https://github.com/stla.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# **prettifyAddins**\r\n\r\n\u003c!-- badges: start --\u003e\r\n[![R-CMD-check](https://github.com/stla/prettifyAddins/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/stla/prettifyAddins/actions/workflows/R-CMD-check.yaml)\r\n\u003c!-- badges: end --\u003e\r\n\r\n### RStudio addins to prettify JavaScript / HTML / CSS / Markdown / C++ and more.\r\n\r\n**JavaScript example:**\r\n\r\n![](https://raw.githubusercontent.com/stla/prettifyAddins/master/inst/screenshots/prettifyAddins_js.gif)\r\n\r\nThe **Markdown** prettifier also prettifies the code blocks:\r\n\r\n![](https://raw.githubusercontent.com/stla/prettifyAddins/master/inst/screenshots/prettifyAddins_md.gif)\r\n\r\n\r\n## NEWS\r\n\r\n- As of **version 1.0.0**, there are six addins:\r\n\r\n![](https://raw.githubusercontent.com/stla/prettifyAddins/master/inst/screenshots/addins_1-0-0.png)\r\n\r\nThe 'shiny' addins are the ones you can see on the above GIFs. The other ones \r\nare not interactive. The *'Prettify C/C++/Java'* addin requires `clang-format` \r\n(it is possible to reindent C/C++/Java (and more) with the *'Indent (shiny)'* \r\naddin).\r\n\r\n- As of **version 2.0.0**, there are five new addins: \r\n  - *'Indent (PhantomJS)':* allows to reindent code for some languages which \r\n  were supported by the *'Indent (shiny)'* addin only, whereas this addin does \r\n  not run a Shiny app; these languages are C, C++, Java, Fortran, Julia, Python, \r\n  SAS, Scala, Shell, and SQL. This addin requires `phantomjs` (the package \r\n  provides a function to install this software).\r\n  - *'Prettify LaTeX':* to prettify LaTeX code; works for Sweave code. It \r\n  requires `latexindent`, which is included in MikTeX and TeX Live \r\n  distributions.\r\n  - *'Prettify Julia':* to prettify Julia code. It requires Julia.\r\n  - *'Prettify Python':* to prettify Python code. It requires \r\n  [black](https://github.com/psf/black).\r\n  - *'Prettify (formatCodeApi)':* to prettify Java, JSON, and Ruby. \r\n\r\nMoreover, this version exports the functions used to prettify/reindent. \r\nFor example:\r\n\r\n```r\r\ncode \u003c- c(\r\n  \"function f(x){\",\r\n  \"return x+1\",\r\n  \"}\"\r\n)\r\ncat(prettify_V8(code, \"javascript\"))\r\n```\r\ngives\r\n```js\r\nfunction f(x) {\r\n  return x + 1;\r\n}\r\n```\r\n\r\n___\r\n\r\n# __Copies of license agreements__\r\n\r\nThe 'prettifyAddins' package as a whole is distributed under GPL-3 (GNU\r\nGENERAL PUBLIC LICENSE version 3).\r\n\r\nIt includes other open source software components:\r\n\r\n- **Prettier**, https://github.com/prettier/prettier\r\n- **indent.js**, https://github.com/zebzhao/indent.js\r\n- **CodeMirror**, https://github.com/codemirror/CodeMirror\r\n- **SQL Formatter**, https://github.com/zeroturnaround/sql-formatter\r\n- **Prettydiff**, https://github.com/prettydiff/prettydiff\r\n\r\nFull copies of the license agreements used by these components are included\r\nin the file [LICENSE.note](https://github.com/stla/prettifyAddins/blob/master/LICENSE.note).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstla%2FprettifyAddins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstla%2FprettifyAddins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstla%2FprettifyAddins/lists"}