Re: Context Sensitive Help for Shian Lee's Unicode/Utf8 editor, "edu.ex"

new topic     » goto parent     » topic index » view thread      » older message » newer message

Since my previous post Shian Lee has upgraded "edu.ex" several times and included several help menus for the various lib2 libraries which allow a user to select a library.doc to browse. There is no word/command specific context sensitive help. This is my latest suggestion:

The help routine can be streamlined and made very efficient by cycling through all the text libraries in the documentation directory searching for the "<current_word>" if a match for the current word search string is found then editor can load that document and place the cursor on the context specific article. If there is no current word, or if a context specific article is not found then then the user can be given the option of selecting one of the available help document to browse using the new_file_from_list() routine.

-- a routine like this might be helpful 
function get_current_word(char key) 
    sequence this_line, white_space, word  
    natural first_non_blank  
     
    this_line = buffer[b_line]  
    white_space = this_line = ' ' or this_line = '\t'  
    first_non_blank = find(0, white_space) -- there's always '\n' at end                    
    word = this_line[first_non_blank..b_col -1 - (key= ' ')]  
    word = "<" & word & ">"  
    return word 
end function 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu