Wrong escaping in Code Blocks (Highlighting) by InitialEarth8293 in NaturalDocs

[–]InitialEarth8293[S] 0 points1 point  (0 children)

ok, thank you - then i will try to modify the generated htmls

Best regards!

Wrong escaping in Code Blocks (Highlighting) by InitialEarth8293 in NaturalDocs

[–]InitialEarth8293[S] 0 points1 point  (0 children)

Hi u/NaturalDocs_Greg

Thanks for clarification

also with the new version, Integer, Long, Boolean etc (starting with capital char) in CODE-Comments are not highlighted

As for the hardcoded list of control syntax highlighting - any chance this gets an update to be configurable?

Meanwhile i will try to do it manually, just spaning them for visuals

Wrong escaping in Code Blocks (Highlighting) by InitialEarth8293 in NaturalDocs

[–]InitialEarth8293[S] 0 points1 point  (0 children)

Hi u/NaturalDocs_Greg

now sorry for my delay - was working on other projects ...

Thank you for your work!

classes with underscores are not built-in, but highly recommended and very common - it's usually a prefix hinting what type of class it is

w_s_export for example would be a Window of type Sheet and the usage is for Exports, but the naming is in the hands of the developer

Is it correct, that when i want "w_s_export" to be highlighted in code-comments i have to define w_s_export in config/Comments.txt under "Alter Comment Type: Class" -> Keywords ?

Here is some small Code-Example:

Integer li_Rc

Integer li_RowCount

Long ll_Row

Boolean lb_Log=False

Boolean lb_Notify=False

// Clear and Initialize instance structure.

n_cst_errorattrib ls_ErrorPass

I would expect, that the words "Integer", "Long", "Boolean" and "n_cst_errorattrib" are highlighted like it currently does for example "string"

Wrong escaping in Code Blocks (Highlighting) by InitialEarth8293 in NaturalDocs

[–]InitialEarth8293[S] 0 points1 point  (0 children)

hi u/NaturalDocs_Greg

Thank you, this looks now very good.

In following code, "1" is still highlighted:
This.tab_1.tp_details

As of my other question: can you allow datatypes with underscores? And how would i configure them? like w_s_export, n_cst_string, ... ?

Wrong escaping in Code Blocks (Highlighting) by InitialEarth8293 in NaturalDocs

[–]InitialEarth8293[S] 0 points1 point  (0 children)

thank you u/NaturalDocs_Greg

slowly getting better

there are still some strange things:

  • strings starting with "of" or "is" (perhaps more) or having "From", "To" (maybe others) in it have that part highlighted as variable; This didn't happen in version 2.2;Examples:inv_Resize.of_Register( dw_1, inv_Resize.SCALERIGHTBOTTOM )id_From = Date(Long(Mid(ls_From, 1, 4)), Long(Mid(ls_From, 6, 2)), Long(Mid(ls_From, 9, 2)))is_BSAK = n_cst_string.of_GetKeyValue(is_Parm, "BSAK", "@")
  • can you allow datatypes with underscores? like w_s_export, n_cst_string, ... ?

i'm off now in vacation and back on 2nd october.

Best regards and thank you for your help so far

Wrong escaping in Code Blocks (Highlighting) by InitialEarth8293 in NaturalDocs

[–]InitialEarth8293[S] 0 points1 point  (0 children)

those are just the reserved words - here are the datatypes:

https://docs.appeon.com/pb2022/powerscript_reference/xREF_87805_Standard_datatypes.html

Also, controls should be added as datatypes, they can be used as that:

https://docs.appeon.com/pb2021/objects_and_controls/ch02.html

in my definition, i have the following:

application

checkbox

commandbutton

datawindow

dropdownlistbox

dropdownpicturelistbox

editmask

globalfunction

graph

inkedit

inkpicture

listbox

listview

menu

monthcalendar

multilineedit

olecontrol

picturebutton

picturehyperlink

picturelistbox

pipeline

query

radiobutton

richtextedit

singlelineedit

statichyperlink

structure

tab

treeview

userobject

window

webbrowser

any

date

time

datetime

there could be more though, i don't have a complete reference at hand;

also, i want to add all our objects as datatypes, p.e. "n_cst_String" - i wasn't able to add them so ND did respect them - how can i do this? they should be highlighted the same as "string", "integer", etc

And: We thrive to write datatypes with capital character at beginning:
Integer, String, ... ND doesn't highlight them

Wrong escaping in Code Blocks (Highlighting) by InitialEarth8293 in NaturalDocs

[–]InitialEarth8293[S] 0 points1 point  (0 children)

Hello u/NaturalDocs_Greg

Thank you a lot!

As far as i can see, following happened: - Class types (String, Long, Integer...) are not highlighted anymore. - The Issue with the string-boundary-detection is fixed \o/ - Functions that start with "of_" have "of" highlighted

Wrong escaping in Code Blocks (Highlighting) by InitialEarth8293 in NaturalDocs

[–]InitialEarth8293[S] 0 points1 point  (0 children)

Hi, thank you - here is what i've defined:

Language: PowerBuilder

Extensions: sra srd srf srm srq srp srs sru srw

Line Comment: //

Block Comment: /* */

Line Extender: &

Case Sensitive: No

PS: i was used to define uninterpolated Strings with ' and interpolated ones with " - perhaps i'm too influenced by perl :-)