Microsoft/monaco-editor
Auf GitHub ansehenPHP: support for code snippets without the starting `<?php` token
Open
#1.658 geöffnet am 5. Nov. 2019
feature-requestgrammarshelp wanted
Repository-Metriken
- Stars
- (14.836 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 6h 26m) (15 gemergte PRs in 30 T)
Beschreibung
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'));
}