{"id":18369992,"url":"https://github.com/statamic/highlight","last_synced_at":"2026-02-26T01:09:28.553Z","repository":{"id":15215349,"uuid":"17943838","full_name":"statamic/highlight","owner":"statamic","description":"Highlight content on your page.","archived":false,"fork":false,"pushed_at":"2016-04-27T13:54:00.000Z","size":2,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-10-19T14:00:45.620Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jquery/jquery","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/statamic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-20T13:37:25.000Z","updated_at":"2024-01-03T03:30:15.000Z","dependencies_parsed_at":"2022-07-22T14:02:15.978Z","dependency_job_id":null,"html_url":"https://github.com/statamic/highlight","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/statamic/highlight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Fhighlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Fhighlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Fhighlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Fhighlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statamic","download_url":"https://codeload.github.com/statamic/highlight/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Fhighlight/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29846998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T22:37:40.667Z","status":"ssl_error","status_checked_at":"2026-02-25T22:37:25.960Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-05T23:34:59.606Z","updated_at":"2026-02-26T01:09:28.518Z","avatar_url":"https://github.com/statamic.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Highlight ![Statamic v1](https://img.shields.io/badge/statamic-v1-lightgrey.svg?style=flat-square)\n\nHighlight words on the current page based on a variable in the URL.\n\n## Usage\n\nThis is a modifier that will work with any text string.\n\n```\n{{ content|highlight }}\n```\n\n## Installing \u0026 Setup\n\nHighlight requires Statamic v1.7.0 or later.\n\n1. Drag `_add-ons/highlight` into your site's `_add-ons` folder\n2. Drag `_config/add-ons/highlight` into your site's `_config/add-ons` folder\n3. Configure `_config/add-ons/highlight/highlight.yaml` as desired\n\n\n## Settings\n\n- `get_variable` is the variable to look for in the URL, `mark` by default; if more than one word is specified (separated by spaces), each will be marked individually\n- `wrapping_element_start` is what will be placed immediately before each match\n- `wrapping_element_end` is what will be placed immediately after each match\n\n\n## Integrating with Bloodhound\n\nYou'll need to update your result links to have your `get_variable` and the given `{{ _query }}` appended to each `{{ url }}` within your `{{ bloodhound:search }}` tags, like this:\n\n```\n{{ url }}?mark={{ _query }}\n```\n\nThis will pass the made query along in the `mark` variable.\nYou can configure `get_variable` to look for anything you want.\nIf you change that, be sure to use the correct variable in your URLs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatamic%2Fhighlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatamic%2Fhighlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatamic%2Fhighlight/lists"}