Our application has many scripts TO run IN SQL*Plus during installation / upgrade / patching. We retain a MOD history IN these scripts WITH rem comments at THE top.
In the Command Window, these are recognised OK as comments.
IN THE Program Window, these are treated AS code lines AND thus syntax colouring etc IS applied. THE most annoying one has TO be WHEN keywords are upper-cased due TO our beautifying rules OR WHEN an apostrophe IN a COMMENT IS treated AS THE START OF a STRING literal, eg:
REM JRA-123 10-DEC-14 Tim Fixed problem WHERE we couldn't find data
REM JRA-456 12-dec-14 Tim Isn't it annoying WHEN this isn't a literal ?
Often, if there's an odd NUMBER OF apostrophes IN THE mod. history comments, THE "literal" ONLY ends WHERE THE FIRST literal IN THE code starts.
WITH apologies TO fellow Brits FOR THE American spellings above: I reached THE CHARACTER LIMIT FOR THE forum post's 'Subject' !
NB: Upper case words appear above as I typed this in a Program Window to demonstrate the effect
Could we have a preference setting to "Treat REM lines as comments up to the first 'CREATE [OR REPLACE] ' line?"
[ with apologies if this is fixed in v10 .. we're awaiting v11 with bated breath
]
In the Command Window, these are recognised OK as comments.
IN THE Program Window, these are treated AS code lines AND thus syntax colouring etc IS applied. THE most annoying one has TO be WHEN keywords are upper-cased due TO our beautifying rules OR WHEN an apostrophe IN a COMMENT IS treated AS THE START OF a STRING literal, eg:
REM JRA-123 10-DEC-14 Tim Fixed problem WHERE we couldn't find data
REM JRA-456 12-dec-14 Tim Isn't it annoying WHEN this isn't a literal ?
Often, if there's an odd NUMBER OF apostrophes IN THE mod. history comments, THE "literal" ONLY ends WHERE THE FIRST literal IN THE code starts.
WITH apologies TO fellow Brits FOR THE American spellings above: I reached THE CHARACTER LIMIT FOR THE forum post's 'Subject' !
NB: Upper case words appear above as I typed this in a Program Window to demonstrate the effect

Could we have a preference setting to "Treat REM lines as comments up to the first 'CREATE [OR REPLACE] ' line?"
[ with apologies if this is fixed in v10 .. we're awaiting v11 with bated breath
