cvette/neos-code-block
Composer 安装命令:
composer require cvette/neos-code-block
包简介
This package includes a node type to add code blocks with syntax highlighting to your Neos CMS project.
README 文档
README
Code block Neos plugin
This plugin adds a nodetype that allows you to display blocks of code with syntax highlighting for a wide range of languages. The highlighing is done on the server-side by using the GeSHi library.
You can set the language, toggle line numbers, set the starting line number and highlight single lines via the property editor.
Installation
composer require cvette/neos-code-block
Usage and custom styles
The Codeblock node type works out-of-the-box by inlining the necessary CSS. If you want to customize the styling you can disable the inline CSS by setting the inlineCss path of the Vette.CodeBlock:Geshi prototype to false:
prototype(Vette.CodeBlock:Geshi) {
inlineCss = false
}
Example CSS files can be found in Resources/Public/Styles/. Please refer to the GeSHi documentation for more information.
License
The GNU General Public License Version 3 (GPLv3). Please see LICENSE for more information.
cvette/neos-code-block 适用场景与选型建议
cvette/neos-code-block 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 445 次下载、GitHub Stars 达 3, 最近一次更新时间为 2017 年 04 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 cvette/neos-code-block 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cvette/neos-code-block 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 445
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2017-04-15