{"id":23618876,"url":"https://github.com/xavierog/codemirror-mode-nginx-renewed","last_synced_at":"2026-02-13T18:31:05.114Z","repository":{"id":57202395,"uuid":"394449250","full_name":"xavierog/codemirror-mode-nginx-renewed","owner":"xavierog","description":"A better nginx mode for CodeMirror","archived":false,"fork":false,"pushed_at":"2026-01-01T12:40:25.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-06T12:16:53.953Z","etag":null,"topics":["codemirror-mode","nginx","nginx-configuration"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xavierog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2021-08-09T21:54:58.000Z","updated_at":"2026-01-01T12:40:28.000Z","dependencies_parsed_at":"2025-04-10T00:00:30.937Z","dependency_job_id":null,"html_url":"https://github.com/xavierog/codemirror-mode-nginx-renewed","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/xavierog/codemirror-mode-nginx-renewed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xavierog%2Fcodemirror-mode-nginx-renewed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xavierog%2Fcodemirror-mode-nginx-renewed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xavierog%2Fcodemirror-mode-nginx-renewed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xavierog%2Fcodemirror-mode-nginx-renewed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xavierog","download_url":"https://codeload.github.com/xavierog/codemirror-mode-nginx-renewed/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xavierog%2Fcodemirror-mode-nginx-renewed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29414278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["codemirror-mode","nginx","nginx-configuration"],"created_at":"2024-12-27T19:32:55.139Z","updated_at":"2026-02-13T18:31:05.090Z","avatar_url":"https://github.com/xavierog.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeMirror nginx renewed mode\n\nThis is a [CodeMirror](https://codemirror.net/) mode that provides syntax highlighting for nginx configuration files.\nThe \"renewed\" suffix is used to distinguish this mode from [CodeMirror's original nginx mode](https://codemirror.net/mode/nginx/index.html).\nThe latter is basically a quick and dirty fork of the CSS mode adjusted for nginx.\nOn the other hand, the nginx renewed mode was written from scratch with the intent of highlighting as many nginx directives as possible, but also various other things: regular expressions, variables in strings, IP addresses, MIME types, Lua blocks.\nThe nginx renewed mode also marks nginx directives as erroneous if they appear in the wrong scope (e.g. `proxy_pass` directly in an `http`/`server` block) -- if needed, this marking can be disabled.\nRefer to the demo page for a complete list of features, MIME types and options.\n\n## How to use\n### Basic use\nLoad `nginx-renewed.js` at an adequate location in your HTML structure.\nMention `mode: 'nginx-renewed'` when creating your CodeMirror instance or, better, `mode: 'text/x-nginx-conf'`.\n\n### Theming\nThis mode leverages CodeMirror's default tokens and should therefore fit in with all CodeMirror themes.\nHowever, it optionally relies on codemirror-mode-pcre, which does NOT use these default tokens.\nConsequently, CSS adjustments may be required for regular expressions to look good.\n\n### Limitations\nSizes (e.g. \"8k\"), durations (e.g. \"1h30m\") and other numbers are not spotted as such and remain highlighted as regular strings.\n\n## License\nThis mode is released under the 3-clause BSD license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxavierog%2Fcodemirror-mode-nginx-renewed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxavierog%2Fcodemirror-mode-nginx-renewed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxavierog%2Fcodemirror-mode-nginx-renewed/lists"}