Microsoft/monaco-editor

PHP: support for code snippets without the starting `<?php` token

Open

#1.658 geöffnet am 5. Nov. 2019

Auf GitHub ansehen
 (4 Kommentare) (3 Reaktionen) (0 zugewiesene Personen)JavaScript (1.283 Forks)batch import
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'));
}

Contributor Guide