Post Reply 
a good code editor for HP Prime
11-02-2019, 12:04 AM (This post was last modified: 12-19-2019 02:05 PM by FrankP.)
Post: #3
RE: a good code editor for HP Prime
First of all my VERY BIG THANK YOU, Chong Wang!

I liked the syntax-highlighting editor and viewer a lot, but for my daily usage, it was missing a search feature.
  • Therefore I started version 1.2 beta of the editor, adding search functionality to the existing code of Chong. Link for 12beta.zip only for history reason. Please use instead zip 1.4 below.
    .zip  CodeEditor_12beta.zip (Size: 16.03 KB / Downloads: 13)
  • Version 1.3 added highlighting search results, jumping to found source lines and calls a virtual keyboard function. Link for 13.zip only for history reason. Please use instead zip 1.4 below.
    .zip  CodeEditor_13.zip (Size: 40.88 KB / Downloads: 21)

Version 1.4. contains also search functionality, search highlighting, jumping to search result, virtual leyboard. In addition it removes unnecessary double textlength checks to reduce startup time and reduces the size of assigned GROB for textoutput. And 1.4 can display the actual line in an input dialog as the only ugly workaround found to allow using all system menues.
Tested with Virtual Calculator 2.1.14181 (2018 10 16) on win 8 and 2.1.14294 (219 10 2) on Android 7.1
   
.zip  CodeEditor_14.zip (Size: 23.87 KB / Downloads: 59)
Some usage notes:

1. Codeeditor is intended for Virtual Calculator. Running Codeeditor on G1 Prime Hardware fails with "Error: Insufficient memory" (ref. Post number 9 onwards in this thread). Behaviour on other physical Prime revisions is unknown.

2. The editor handles basic keyboard entries:
  • key 'sin' can be used to enter "SIN()", "ASIN()", "G" and "g"
  • key 'Vars' can be used to enter "A" and "a".
    To activate the 'Vars' menu or the character table you need to press before the
    'Help' key.
    An input dialog for the corresponding line is displayed with all system menues active.
3. usual keys:
  • 'Enter' 'Shift-Enter'
  • 'Del' 'Shift-Del'
  • 'Up' 'Down' 'Left' 'Right' cursor movement
  • 'Shift-Up' 'Shift-Down' to end/beginning of file
  • 'Shift-Left''Shift-Right' to end/beginning of line
4. special keys:
  • 'Symb' Search all
    A syntax colored overview on all lines containing a search string will be displayed.
    To be ended by additional 'Symb' key press.
    When tapping on a line before ending the search display, the corresponding line number of the sources will be displayed.
    Search results are highlighted.
  • 'Plot' / 'Num' Search backward / backward
  • 'Alpha-Dot' Start virtual keybord.
    A function "virtual_keys()" returning a string is called. This could be for example the very comfortable virtual_keys program https://www.hpcalc.org/details/7914 resp. https://www.hpmuseum.org/forum/thread-8262.html. After installing that program only ensure the function virtual_keys() is changed to 'EXPORT' to have it activated from within CodeEditor.
  • 'Help' Display actual line in input dialog.
    This is used as an ugly workaround to allow editing with all system menues active. Including Copy, Paste, Help, Character table, Toolbox, Units, Math template, Relation palette ... (unfortunately no multi line editing via INPUT for example for copy-paste possible)
    PLEASE NOTE:
    A " in a line will be displayed as "" by the INPUT function. No way has been found to convince INPUT starting with " instead of "". Therfore you need to use 'Bksp' key before starting to edit. This will convert all double "" into single ".
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: a good code editor for HP Prime - FrankP - 11-02-2019 12:04 AM



User(s) browsing this thread: 1 Guest(s)