[ymacs] How to get the source code in the Editor .

48 views
Skip to first unread message

wewe.tom

unread,
Apr 23, 2010, 7:52:39 AM4/23/10
to Ymacs - AJAX code editor
I googled ,but I didnt find that how to get source code in the
editor .

any idears ?

Tom

--
www.ymacs.com - AJAX code editor

Subscription settings: http://groups.google.com/group/ymacs/subscribe?hl=en

Mihai Călin Bazon

unread,
Apr 23, 2010, 11:04:15 AM4/23/10
to ym...@googlegroups.com
If you mean how to paste into it, you must use C-S-y (Control-Shift-Y) since we cannot access the system clipboard directly due to browser security restrictions.

To load code from a program, you would need to use Ymacs_Buffer's setCode method; sorry that the API documentation is missing, but you should be able to figure it out from test.js.

Cheers,
-Mihai
--
Mihai Bazon,
http://mihai.bazon.net/blog

wewe.tom

unread,
Apr 24, 2010, 3:11:22 AM4/24/10
to ym...@googlegroups.com
due to my poor English . I think I did not speak it clearly
I want to do something like this : 

>create a file helloworld.js with Cmd  C-x C-f

>I edit the  file , then I save it with Cmd C-x C-s  .to do this , I  must get the code I have wriitten,HOW? I get the code , ajax to save it to database .

>I open a file exist , above helloworld.js , edit it ,save it .


Thanks
Reply all
Reply to author
Forward
0 new messages