1. ed.ex/edx.ex :: multiline comment bug?
- Posted by K_D_R Feb 04, 2014
- 1450 views
-- using multi-line comment, if you try to break the quote on one line, -- ed.ex continues to display the text which has been moved to the following line. /* multi-line comment bug? */ bug? */ -- however, if the file is saved and reloaded, it then displays correctly. /* multi-line comment bug? */ Ken
2. Re: ed.ex/edx.ex :: multiline comment bug?
- Posted by K_D_R Mar 16, 2014
- 1276 views
I came up with this simple work around for ed.ex/edx.ex - you can easily add a forward SLASH ESCAPE hotkey to the list of ESCAPE HOTKEYS:
command = key_gets("hcqswnedfrlm/", {}) & ' ' -- -- then insert the following elsif clause in the subsequent list of elsif clauses: elsif command[1] = '/' then -- multi-line comment add_queue("/*" & CR & CR & "*/" & ARROW_UP) -- now after you press ESCAPE, you can simply enter a forward slash on ed.ex/edx.ex's -- top line, command bar and the multiline tokens will be inserted and the cursor will -- be inserted between the tokens: /* x --< placement of cursor */ -- you can do the same thing with the BACK_TICK for a multiline quote: -- if you do not insert the token in the list of hotkeys, you will have to -- press return after entering the token in the top line command bar: command = key_gets("hcqswnedfrlm/`", {}) & ' elsif command[1] = '`' then -- multi-line quote add_queue("`" & CR & CR & "`" & ARROW_UP) ` x --< placement of cursor `
3. Re: ed.ex/edx.ex :: multiline comment bug?
- Posted by jimcbrown (admin) Mar 16, 2014
- 1245 views
K_D_R said...
add_queue("`" & CR & CR & "*/" & ARROW_UP) ^^^
Huh?
4. Re: ed.ex/edx.ex :: multiline comment bug?
- Posted by K_D_R Mar 16, 2014
- 1269 views
jimcbrown said...
K_D_R said...
add_queue("`" & CR & CR & "*/" & ARROW_UP) ^^^
Huh?
OOPS! Thanks for catching the error, Jim...
command = key_gets("hcqswnedfrlm/`", {}) & ' -- elsif command[1] = '`' then -- multi-line quote add_queue("`" & CR & CR & "`" & ARROW_UP) ` x --< placement of cursor `