Microsoft/monaco-editor
在 GitHub 查看PHP: support for code snippets without the starting `<?php` token
Open
#1,658 创建于 2019年11月5日
feature-requestgrammarshelp wanted
仓库指标
- Star
- (14,836 star)
- PR 合并指标
- (平均合并 6小时 26分钟) (30 天内合并 15 个 PR)
描述
monaco-editor version: 0.18.1
Steps or JS usage snippet reproducing the issue:
The following snippet doesn't get highlighted properly because the starting <?php token is missing, I think it should get highlighted better, like GitHub is doing, even though the current behavior is probably overall more correct, but kind of too strict.
public function index() {
$projects = Project::all();
return view('projects.index', compact('projects'));
}