linkorb/ace-editor-mode-php

通过文件扩展名获取Ace编辑器模式

v1.0.0 2018-06-27 09:42 UTC

This package is auto-updated.

Last update: 2024-08-29 04:48:47 UTC


README

示例

使用示例

$fileInfo = pathinfo($filePath); // Path to the file//
$aceEditorMode = new \LinkORB\Ace\AceEditorMode();
$aceMode = $aceEditorMode->getAceMode($fileInfo['extension']);
echo $aceMode;

访问器

请参考examples/目录下的示例。

许可证

MIT (见LICENSE.md)

由LinkORB工程团队提供


请查看我们的其他项目:linkorb.com/engineering

顺便说一句,我们正在招聘!