Fix array length, sort context vars, console commands stack, context var list themeability (UPDATED) #220
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Concerns addressed by this pull request:
Console
alt+up/alt+down(when focused on the input of the text editor inside the console panel).It's useful when you want to execute the same code multiple times or the last executed command contained an error.
Context var list
lengthproperty of a context variable isundefined. It happens to me with$GLOBALS['GLOBALS'], for example, which is shown as$GLOBALS['GLOBALS'] array[undefined], but its value is reallyArray[0].boolvalues are printed correctly astrue/false(previously was being printed as1/0).ksort()(string keys first, numeric ones then).Numeric keys are not enclosed between quotes anymore. This improves readability, since it's far easier to find any variable/key/property.
language-phppackage. This way, one uses the same color codes in the editor and the panels from this package.syntax--propertyandsyntax--numeric/syntax--stringdepending on the type.spanis provided with a class with the value type:syntax--array,syntax--bool,syntax--error,syntax--null,syntax--numeric,object,syntax--resource,syntax--string, orsyntax--uninitialized.spanitem uses the samesyntax-phpfrom the packagelanguage-php.Locals/Superglobals/User defined constants) have the classsyntax--type.Editor
Here is a screenshoot showing the improvements:
DISCLOSURE: I've made some CSS customizations apart. If some users like it, I could ship them with the PR (like the
=and:to separate variables/keys/properties from their values, or the layout of the panels).