{"id":21054541,"url":"https://github.com/johnowhitaker/syninpy","last_synced_at":"2026-02-12T01:36:40.306Z","repository":{"id":251263550,"uuid":"836886623","full_name":"johnowhitaker/syninpy","owner":"johnowhitaker","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-01T19:33:58.000Z","size":214,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T01:30:37.289Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/johnowhitaker.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-08-01T19:03:21.000Z","updated_at":"2024-08-02T13:37:51.000Z","dependencies_parsed_at":"2024-08-01T21:52:50.949Z","dependency_job_id":null,"html_url":"https://github.com/johnowhitaker/syninpy","commit_stats":null,"previous_names":["johnowhitaker/syninpy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johnowhitaker/syninpy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnowhitaker%2Fsyninpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnowhitaker%2Fsyninpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnowhitaker%2Fsyninpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnowhitaker%2Fsyninpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnowhitaker","download_url":"https://codeload.github.com/johnowhitaker/syninpy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnowhitaker%2Fsyninpy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262026982,"owners_count":23246954,"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":[],"created_at":"2024-11-19T16:14:41.976Z","updated_at":"2026-02-12T01:36:35.280Z","avatar_url":"https://github.com/johnowhitaker.png","language":"TypeScript","readme":"# syninpy README\n\nHackily adding syntax highlighting to JS snippets in python\n\nExtension page: https://marketplace.visualstudio.com/items?itemName=JohnoWhitaker.syninpy\n\nWarning: experimental, not tested much, use at your own risk :)\n\n## Usage\n\nInclude your snippets in the code like this to get syntax highlighting:\n\n\n```python\n\ndef python_function():\n    print(\"Hello World\")\n\n#js\nscript = \"\"\"\ndocument.addEventListener('DOMContentLoaded', function() {\n    var accordionItems = document.querySelectorAll('.accordion-item');\n\n    accordionItems.forEach(function(item) {\n        item.addEventListener('shown.bs.collapse', function() {\n            var headerElement = this.querySelector('.accordion-header');\n            var yOffset = -10; // Adjust this value to fine-tune the scroll position\n            var y = headerElement.getBoundingClientRect().top + window.pageYOffset + yOffset;\n            window.scrollTo({top: y, behavior: 'smooth'});\n        });\n    });\n});\n\"\"\"\n\ndef another_python_function():\n    print(\"Hello World\")\n\n```\n\nYou can also end with #end-js. Note it skips the line immediately after the #js tag.\n\n`# js` and `# end-js` now also work, for those with linters.\n\nScreenshot: \n\n![Screenshot](https://raw.githubusercontent.com/JohnoWhitaker/syninpy/main/screenshot.png)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnowhitaker%2Fsyninpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnowhitaker%2Fsyninpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnowhitaker%2Fsyninpy/lists"}