Hello
I recently upgraded from SlickEdit 18.0.1 to SlickEdit 20.0.3. I am on Windows 7 64 bit. I have noticed some strangeness with JavaScript indenting. I started with a brand new config to make sure this wasn't due to any config changes I might have made.
var strange_indent = {
function1: function() {
// the indent is here as expected.
},
function2: function() {
// the indent is slightly off.
},
property: 'some value, does not seem to matter what it is',
function3: function() {
// the indent is quite a bit off.
},
function4: function() {
// the indent back to being slightly off.
},
longer_property_name: 'the length of the property name seems to make a difference',
function5: function() {
// because the indent is even further off.
},
now_an_even_longer_property_name: 'the longer the preceding property name...',
function6: function() {
// ...the further off the indent is.
}
};
If I then execute Tools > Beautify > Beautify (Default), everything is indented as expected.
This isn't a big deal for me right now. If I manually move to the correct indent location and type a ';', everything after it seems to indent correctly. I was just hoping maybe someone else had seen this before and knew of a way to fix it.
Thanks,
Joseph