I have this code:
Route::group(['prefix' => 'somthing'], function () {
Route::group(['middleware' => ['something']], function () {
Route::group(['prefix' => 'somethingelse'], function () {
Route::group(['prefix' => 'someotherthing'], function () {
Route::get('something', ['uses' => 'SomethingController@something'); // Here color scheme doesn't show up properly
});
});
});
});
In the middle there (where Route::get
is called), The color scheme doesn't show up properly:
Anything from that point forward showing in white in default color scheme (doesn't work on other color schemes as well).
ST3 3114 build, 64bit. OS windows 8.1. Screenshot 2 material theme lighter.
That's quite simple in Sublime. Just Ctrl+Shift+P (or Command+Shift+P on MacOS) to open the tools pallet, type reindent , and pick Indentation: Reindent Lines . It should reindent all the file you are in, just remember to save before running the command, or it may not appear.
by pressing ctrl+f12, it will reindent your file to a tab size of 4. if you want a different tab size, you just change the "value" number.
One option is to type [command] + [shift] + [p] (or the equivalent) and then type 'indentation'. The top result should be 'Indendtation: Reindent Lines'. Press [enter] and it will format the document.
You have a syntax error on line 5 that may be affecting the highlighting:
Route::get('something', ['uses' => 'SomethingController@something');
is missing a closing square bracket ]
:
Route::get('something', ['uses' => 'SomethingController@something']);
Using the Neon Color Scheme (full disclosure: I'm the author), your original code looks like this:
(note the green closing parentheses )
and curly brackets }
). With the offending closing square bracket added, it looks like this:
You don't indicate which color scheme you're using, so I couldn't compare my results with it, but hopefully adding the missing bracket will help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With