{"id":16935910,"url":"https://github.com/knu/wp-syntax-download-extension","last_synced_at":"2026-02-19T11:33:41.205Z","repository":{"id":66032570,"uuid":"2596488","full_name":"knu/wp-syntax-download-extension","owner":"knu","description":"This plug-in makes WP-Syntax highlighted code snippets downloadable from nice captions.","archived":false,"fork":false,"pushed_at":"2024-04-13T02:28:31.000Z","size":146,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T23:49:19.625Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://wordpress.org/extend/plugins/wp-syntax-download-extension/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knu.png","metadata":{"files":{"readme":"readme.txt","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"knu"}},"created_at":"2011-10-18T03:00:52.000Z","updated_at":"2022-01-09T07:55:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"c46566b7-b1f7-4e6a-9530-fa635bcd11d4","html_url":"https://github.com/knu/wp-syntax-download-extension","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fwp-syntax-download-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fwp-syntax-download-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fwp-syntax-download-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fwp-syntax-download-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knu","download_url":"https://codeload.github.com/knu/wp-syntax-download-extension/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131457,"owners_count":21052819,"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-10-13T20:55:38.210Z","updated_at":"2025-10-16T06:02:34.811Z","avatar_url":"https://github.com/knu.png","language":"PHP","funding_links":["https://github.com/sponsors/knu"],"categories":[],"sub_categories":[],"readme":"=== WP-Syntax Download Extension ===\nContributors: akinori-musha\nDonate link: https://github.com/knu\nTags: Formatting, code, highlight, syntax, syntax highlighting\nRequires at least: 3.0\nTested up to: 3.4.2\nStable tag: 1.1.3\n\nThis plug-in makes WP-Syntax highlighted code snippets downloadable from nice captions.\n\n== Description ==\n\nThis plug-in adds download facility to\n[WP-Syntax](https://wordpress.org/extend/plugins/wp-syntax/), putting a\npretty caption to each syntax highlighted code snippet, which contains\na permalink anchor and a couple of action buttons: \"raw\" and\n\"download\".\n\nThe usage is easy.  You just put an attibute `filename=\"...\"` to\na `\u003cpre\u003e` element and the snippet will have a caption.\n\nI strongly recommend that you use the [TinyMCE Valid\nElements](https://wordpress.org/extend/plugins/tinymce-valid-elements/)\nplug-in to make the non-standard attributes of the `\u003cpre\u003e` element\ntreated as valid and get preserved in the visual editor.  Configure it\nso that the `pre` element can have the following attributes:\n\n*   `class`\n*   `dir`\n*   `escaped`\n*   `filename`\n*   `highlight`\n*   `id`\n*   `lang`\n*   `line`\n*   `style`\n*   `title`\n*   `wrap`\n\nYou can alter the visual style of captions with CSS via admins menu.\nThis plug-in was first developed for PHP 5.2.12 and is currently\ntested only with 5.4.  It will never work with PHP 4.\n\n== Installation ==\n\n1. Upload the `wp-syntax-download-extension` directory to the\n   `/wp-content/plugins/` directory.\n\n2. Activate the plugin through the 'Plugins' menu in WordPress.  Of\n   cource you have to have WP-Syntax activated as well.\n\n3. Add an attribute `filename=\"filename.ext\"` to the `\u003cpre\n   lang=\"...\"\u003e` snippet that you want to make downloadable.\n\n4. Adjust the design of captions with CSS via admins menu.\n\n== Frequently Asked Questions ==\n\nQ.  This plug-in does not work with WP-Syntax _\u0026lt;some old\n    version\u0026gt;_!\n\nA.  No surprise.  This plug-in depends on WP-Syntax's internals.  Fix\n    it yourself or upgrade WP-Syntax.\n\nQ.  This plug-in does not work with WP-Syntax _\u0026lt;the latest\n    version\u0026gt;_!\n\nA.  Bad surprise to me.  This plug-in depends on WP-Syntax's internals.\n    Fix it yourself or wait until I fix it.\n\nQ.  How do you customize the styles of the code?\n\nA.  Amongst the options I am using the [WP-Syntax\n    Hacktify](https://wordpress.org/extend/plugins/wp-syntax-hacktify/)\n    plug-in.\n\n== Screenshots ==\n\n1. Output sample in the default style.\n\n2. Output sample in a user customized style.\n\n3. Admin options screen.\n\n== Changelog ==\n\n= 1.1.3 =\nFix a fatal error and suppress a warning with PHP 8.\n\n= 1.1.1 =\nAdd support for a file name with directory separators.\nAutomatically suppress W3TC comments in raw/download output.\n\n= 1.1.0 =\nUpdate for WP-Syntax 1.0, dropping support for 0.9.13 and prior.\n\n= 1.0.4 =\nUpdate for WP-Syntax 0.9.13, dropping support for 0.9.12 and prior.\nTake care of extended_valid_elements of TinyMCE.\n\n= 1.0.3 =\nFix a bug where the CSS is not read.\n\n= 1.0.2 =\nFollow the critical change made in WP-Syntax 0.9.11, which is now the\nleast requirement version.  As a bonus, WordPress 3.0 or later is\nrequired.\n\n= 1.0.1 =\nDo not fail when WP-Syntax is not installed or activated.\nImprove this document.\n\n= 1.0 =\nFirst release.\n\n== Upgrade Notice ==\n\n= 1.1.0 =\nThis version is for use with WP-Syntax 1.0 or higher.\n\n== License ==\n\nCopyright (c) 2010-2024 Akinori MUSHA\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n\n1. Redistributions of source code must retain the above copyright\n   notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright\n   notice, this list of conditions and the following disclaimer in the\n   documentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\nARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\nOR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\nHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\nLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\nOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Fwp-syntax-download-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknu%2Fwp-syntax-download-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Fwp-syntax-download-extension/lists"}