custom %REGION hide like in Delphi; lazarus / 9-Editor ---------------------------------------------------------------------- guest62577 · 2018-07-26 19:52 when using custom region at the editor, seem from Delphi it suffers in organization design("valuable space"); current situation region keyword are present on the code when folded Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {%REGION}  // some code, unfolded{%ENDREGION} {%REGION} [...]   //folded code remain region keyword Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {%REGION /fold}  // some code, unfolded{%ENDREGION} {%REGION /fold} [...]   //folded code remain region keyword Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {%REGION /fold ' region title '}  // some code, unfolded{%ENDREGION} {%REGION /fold ' region title' } [...]   //folded code remain region keyword wondering situation region keyword are hidden when folded; like in Delphi; Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {%REGION}  // some code, unfolded{%ENDREGION} [...]   //folded code no region keyword Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {%REGION /fold}  // some code, unfolded{%ENDREGION} [...]   //folded code no region keyword Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {%REGION /fold ' region title '}  // some code, unfolded{%ENDREGION} {' region title' } [...]   //folded code no region keyword how to hide the Region and /fold keyword when code is folded? thanks; ---------------------------------------------------------------------- Martin_fr · 2018-07-26 20:30 I dont know if it works with the /fold indicator. But you can go to Tools > Options > Editor > Code folding, and select region in the list, then from the radio-buttons choose "hide" hide, however will leave no line at all. the [...] are shown in the line above. region title is not implemented yet ---------------------------------------------------------------------- guest62577 · 2018-07-26 20:50 with this setting, it actually works like in Delphi; Sample Usage [SOLVED] using the settings instructions indicated by Martin_fr Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {Region Title}{%REGION /fold}  // some code, unfolded{%ENDREGION} {Region Title} [...]   //folded code no region keyword thanks; ---------------------------------------------------------------------- guest62577 · 2018-07-26 23:47 as a side note to the sample solution presented, which works by functionally; it would still fail by Design on that now everything is at the same comment color; meaning User Defined Markup are not saved in the Project Options, creating a different "work" that would consist exporting(backup\save) Editor Options in order to retain customized the "Region Titles" [...] the custom color used by %Region are the IDE Directive under Options > Editor > Display > Colors ---------------------------------------------------------------------- taazz · 2018-07-27 00:02 Quote from: UbuntuAccount on July 27, 2018, 01:47:06 amas a side note to the sample solution presented, which works by functionally; it would still fail by Design on that now everything is at the same comment color; meaning User Defined Markup are not saved in the Project Options, creating a different "work" that would consist exporting(backup\save) Editor Options in order to retain customized the "Region Titles" [...] the custom color used by %Region are the IDE Directive under Options > Editor > Display > Colors you can use the {$Region } as well like in delphi.