Recently bought the Code Syntax Plugin, and it does exactly what I want, except for one small thing.
It seems to trim all the space and line breaks of any code I use it with, which makes it very unfriendly to read. Example below:
It turns this:
var myObj = new GlideRecord(‘table_name’);
// 2. Build query
myObj.addQuery(‘field_name’,‘operator’,‘value’);
myObj.addQuery(‘field_name’,‘operator’,‘value’);
// 3. Execute query
myObj.query();
// 4. Process returned records
while(myObj.next()){
//Logic you want to execute.
//Use myObj.field_name to reference record fields
}
into this:
var myObj = new GlideRecord(‘table_name’); // 2. Build query myObj.addQuery(‘field_name’,‘operator’,‘value’); myObj.addQuery(‘field_name’,‘operator’,‘value’); // 3. Execute query myObj.query(); // 4. Process returned records while(myObj.next()){ //Logic you want to execute. //Use myObj.field_name to reference record fields }
Is there any setting or technique I can use to avoid this? Thanks!