{"id":18877465,"url":"https://github.com/pablohirafuji/elm-syntax-highlight","last_synced_at":"2025-04-05T15:06:33.552Z","repository":{"id":40696874,"uuid":"100055299","full_name":"pablohirafuji/elm-syntax-highlight","owner":"pablohirafuji","description":"Syntax highlighting in Elm","archived":false,"fork":false,"pushed_at":"2025-03-16T13:48:10.000Z","size":631,"stargazers_count":78,"open_issues_count":3,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T14:08:20.400Z","etag":null,"topics":["elm","highlight","syntax"],"latest_commit_sha":null,"homepage":"http://package.elm-lang.org/packages/pablohirafuji/elm-syntax-highlight/latest","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pablohirafuji.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2017-08-11T17:21:23.000Z","updated_at":"2025-03-16T13:47:39.000Z","dependencies_parsed_at":"2024-06-18T22:42:35.836Z","dependency_job_id":"dd29abd6-8127-4deb-b88b-5dd06f52fa54","html_url":"https://github.com/pablohirafuji/elm-syntax-highlight","commit_stats":{"total_commits":114,"total_committers":10,"mean_commits":11.4,"dds":"0.16666666666666663","last_synced_commit":"e7679cdb8e892a87061a8671f7be928aa56c3b34"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pablohirafuji%2Felm-syntax-highlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pablohirafuji%2Felm-syntax-highlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pablohirafuji%2Felm-syntax-highlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pablohirafuji%2Felm-syntax-highlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pablohirafuji","download_url":"https://codeload.github.com/pablohirafuji/elm-syntax-highlight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353745,"owners_count":20925329,"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":["elm","highlight","syntax"],"created_at":"2024-11-08T06:19:14.501Z","updated_at":"2025-04-05T15:06:33.522Z","avatar_url":"https://github.com/pablohirafuji.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elm Syntax Highlight\n\nSyntax highlighting in Elm. [Demo](https://pablohirafuji.github.io/elm-syntax-highlight/).\n\n## Language support\n\n- Elm\n- Javascript\n- Xml\n- Css\n- Python (Thanks [@brandly](https://github.com/brandly)!)\n- SQL (Thanks [@oschmid](https://github.com/oschmid)!)\n- JSON\n- Nix (Thanks [@anddani](https://github.com/anddani)!)\n- Kotlin (Thanks [@anddani](https://github.com/anddani)!)\n- Go (Thanks [@ahmedakef](https://github.com/ahmedakef)!)\n\nAnd there is a `noLang` generic option for when the language is unknown (Thanks [@Anton-4](https://github.com/Anton-4)!).\n\n## Themes\n\nYou can define the theme either by copying and pasting the theme styles into your `.css` file or using the `useTheme` helper.\n\n### Copying and pasting the theme\n\nAll themes and required styles can be found [here](https://pablohirafuji.github.io/elm-syntax-highlight/themes.html).\n\n### Using `useTheme` helper\n\nPlace the `useTheme` function with your chosen theme anywhere on your view.\n\n```elm\nimport SyntaxHighlight exposing (useTheme, monokai, elm, toBlockHtml)\n\nview : Model -\u003e Html msg\nview model =\n    div []\n        [ useTheme monokai\n        , elm model.elmCode\n            |\u003e Result.map (toBlockHtml (Just 1))\n            |\u003e Result.withDefault\n                (pre [] [ code [] [ text model.elmCode ]])\n        ]\n```\n\n## Thanks\n\nThank you Evan for bringing joy to the frontend.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpablohirafuji%2Felm-syntax-highlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpablohirafuji%2Felm-syntax-highlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpablohirafuji%2Felm-syntax-highlight/lists"}