Lightweight text editor?
I need to provide a basic text editor in my swing commercial app.
Rather than reinventing the wheel are there any freely available fine tuned lightweight editors available in a jar that I can use for this purpose?
There is http://syntax.jedit.org/ which uses the MIT/X11 licence but though it is extremely lightweight the code has not been updated in 7 years and is not wrapped in a package...also the functionality is supports is still way overkill for my needs (for example it supports syntax highlighting for 10+ code file types). I guess what i was hoping for was a well used java class that encapsulated a simple text editor.....
Thanks,
Tom.
Edited by: tyk on Nov 26, 2007 7:31 AM
True. I found myself having to add cut/copy/paste which is not such a big deal and just wondered if there was any simple class out there that people reuse...but i guess everyone just writes their own :-(
Similar Messages
-
I have been looking for a good macintosh Java text editor for my newphew. His high school is primary macintosh (Mac OS X) workstation based, therefore in order to code/learn Java, he understands that he can use a simple text editor.
Is there a good text editor for the macintosh? Maybe a comparison is BBEdit for web site development, something with that power.
Or is there a better simple editor in the terminal he can use?
Thank you for reading this post.You can use TextEdit in plain text mode, or you can go to http://developer.apple.com/ and get Apple's free Project Builder IDE of OS X10.2, which works OK most the time as a text editor with syntax highlighting, but I've found tends to fall over when you try to debug; I've just ordered OS X 10.3 which comes with XCode, which looks prettier, and may even work.
For the one or two class examples I post here, I use project builder as a text editor, and compile from the terminal. For larger projects, I use project builder but have to be disciplined about saving regularly.
I've also used J (http://sourceforge.net/projects/armedbear-j/), though mainly under linux on a slow laptop, which is quite fast and lightweight, and being Java portable. I will go try it on the Mac forthwith.
Pete -
Web Standard, Crossgrades, New Text Editor
I've been using "CS" since Macromedia Studio 8, but I didn't upgrade to CS5 last year because there was no 'Standard' package offered. I just don't need all the other stuff in the suite ... I don't even use everything in CS4 Web Standard. If this is just not ever going to come back, how about offering a discount on crossgrading to the individual programs we need from the suite. ie. a discount for the individual licenses of Fireworks, Dreamweaver, and/or Flash Pro. I just looked at the upgrade pricing for Web Premium CS5.5 ... it looks like the price just went up even more.
I find it a little hard to believe there is not any demand for a smaller web suite, like CS4 Web Standard. The only programs really necessary (for me) are a decent text editor with code hinting (Dreamweaver), a graphics program (either Photoshop or, for me, Fireworks), and maybe Flash Pro. I just don't need all the other stuff in the package. I would have just upgraded Fireworks, but I would have to pay full price for the individual program as there is no crossgrade option from CS to single program. Surely there are other people out there that feel the same way.
To be honest, I find myself using Dreamweaver and Flash less and less. I've been using a "no frills" text editor and an open browser for most projects over the last year or so. As far as Flash, I rarely open it - seems now just to edit an old app for a previous client.
Which brings me to the last part ... "Dreamweaver Lite". How would anyone feel about a light version of Dreamweaver? Streamline it, get rid of the WYSIWYG editing and Live Preview, keep code hinting and the CSS inspector/builder. Keep the 'projects' and FTP and add versioning (backups of latest document versions before going live). Make it a really lightweight Adobe text editor with a small footprint.
LOL, just re-read what I wrote ... looks like its kinda all over the place. I think folks will get what I'm going for though.Hi Sonal,
I have faced similar issue with respect to module pool with container on the screen.
Try using the following on back action....
call method wf_init_edit->delete_text. (wf_init_edit -> editor reference - type ref to cl_gui_textedit )
Also we can free the container using
call method wf_init_cont->free. (wf_init_cont -> container reference - type ref to cl_gui_custom_container )
Hope it helps.
Regards,
Byju -
Hi,
I have been using text editor control.
In this when we click load file button...an open prompt window appears..
there we will be finding Files of type... dropdown..containing values like text(.txt) file and All file types..
Is there any way to restrict this dropdown to single value..i mean to .txt file..should only be viewed omitting
All files option in dropdown..
i am using CL_GUI_TEXTEDIT..control...
Is there any option to do it...
Please Help me out.
Thanks & Regards,
Sandy.Hi Sandy,
I don't think there is any method for this. As the dialog box opened is depending on your OS.
But, you can cross check the uploaded file for " .txt " using CP (contains pattern) function of string.
DATA: xl type string.
xl = '*.txt'.
IF not P_FILE CP xl. "P_FILE is name of file you will get.
"Error"
ENDIF.
Sachin -
Options -> Text Editor -> C/C++ missing intellisense entry. Intellisense not working. Solutions to turn options for the editor off and on are not working. The intellisense entry is present for other languages,
such as C#, but not C/C++.
By not working, I mean the intellisense right click menu items are grayed out, and intellisense files are not produced.Hi JerroldBrody,
Thank you for posting in MSDN forum.
>>I mean the intellisense right click menu items are grayed out, and intellisense files are not produced.
Based on your issue, could you please share me a screen shot about the intellisense right click menu items are grayed out?
Generally, I know that it is default that we can enable the intellisense for C/C++ by going to the TOOLS->Options -> Text Editor -> C/C++ ->Advanced-> IntelliSense like the following screen shot.
So please try to check if you set Disable Intellisense property as False in the VS IDE.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
We have portal release 2 running on HP-UX.
In release 2 there is a new text editor for publishing text. Its used for simple text and text item types.
How is this feature implemented? Is the source code available?
Feedback appreciated.Hi,
It is called Rich Text editing. A search on google with the keywords rich text edit
will give you links to quite a few sites, where the source is available. It uses
a combination of DHTML and JavaScript.
We have portal release 2 running on HP-UX.
In release 2 there is a new text editor for publishing text. Its used for simple text and text item types.
How is this feature implemented? Is the source code available?
Feedback appreciated. -
Rich text editor (apex 4.0)
using blue gray theme and a page with a rich text editor. Expanding the rich text options displays the text body p below the text area that persists even if you close the rich text options. Anybody know how to get rid of that behavior?
I think your mixing 2 technologies.
At 1 side you have xml in combination with xsl (style sheets used in BI Publisher and FOP) to generate your pdf. And at the other side you have HTML...
XML and HTML are 2 entirely different technologies which you can not mix this simple. I investigated the same problem as you had, and in the end I ended up using jasperreports instead of FOP.
Maybe BI Publisher has some html regions which you could insert into your word document but I doubt it cause more people have asked the same question on this board...
So my advice: use jasperreports (also it is free for commercial usage)
Success
Br,
Nico -
Text editor in Score module agonizingly clunky! Fix?
When creating scores from midi regions, the text editor drives me nuts when adding lyrics: The word/character positioning is different between text edit/create mode and what appears on the screen after editing, and different again between that and what appears in print preview mode or actual print-out. This is absolutely crazy-making when trying to line words/syllables up with their corresponding notations!
Also the cut & paste functions don't work as in any other text editor I've seen.
Also-also I can't get it to accept a new default font and size.
Suggestions? Dr. Kevorkian's phone number?
Thanks!Hi,
it looks like you have some problem with RFC. It stopped on the following line:
* Communication error in RFC-Call
message x628(ke) with 'RFC_ERROR' subrc msg_text.
Ask your basis guy to check it. The job on application server tried to connect to the central instance and it failed. The job run on central instance does not need to make any RFC call. Hence there is no problem in this case.
Regards -
I am working on a project that needs a Rich-Text Editor with
ability to insert tables, images, and more complex editing features
such as what FCKEditor provides but ideally that was built with
Flex in mind. Is there such an editor available? I have seen a few
options but nothing that really matched the functionality of
FCKEditor for example.
ThanksHello,
I was looking for flex version of the FCK Editor,
unfortantly, I could not find a fully complete solution, but I
found the following which might help you:
1.
http://flashtexteditor.com/flexdemo/full/
2.
http://drumbeatinsight.com/examples/htmlcomponent/editor/HTMLWithRTE.html
L.L. -
Text Editor using cl_gui_textedit
Hi,
I need a text editor box on selection screen in display mode. and I'm using cl_gui_textedit class to get it.. but for some reason its not working.
Here is the code below -
report YLTEST1
no standard page heading line-size 255.
DATA: g_text_editor TYPE REF TO cl_gui_textedit,
g_text_container TYPE REF TO cl_gui_custom_container,
g_gen_text_editor TYPE REF TO cl_gui_textedit,
g_gen_text_container TYPE REF TO cl_gui_custom_container.
DATA: WORDWRAP_POSITION LIKE CL_GUI_TEXTEDIT=>M_WORDWRAP_POSITION.
data: g_gen_txt_container TYPE scrfname VALUE 'GENERAL_TEXT_FOR_REPS'.
DATA: TEXT_TAB TYPE STANDARD TABLE OF LINE.
parameters: p_check.
at selection-screen output.
Create sales Text container
WORDWRAP_POSITION = 100.
IF G_GEN_TEXT_CONTAINER IS INITIAL.
CREATE OBJECT:
G_GEN_TEXT_CONTAINER EXPORTING CONTAINER_NAME = G_GEN_TXT_CONTAINER,
G_GEN_TEXT_EDITOR EXPORTING PARENT = G_GEN_TEXT_CONTAINER
WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
WORDWRAP_POSITION = WORDWRAP_POSITION
WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE.
ENDIF.
IF not G_GEN_TEXT_CONTAINER IS INITIAL.
Set container options
CALL METHOD: G_GEN_TEXT_EDITOR->SET_TOOLBAR_MODE
EXPORTING TOOLBAR_MODE = 0,
G_GEN_TEXT_EDITOR->SET_READONLY_MODE
EXPORTING READONLY_MODE = 1,
G_GEN_TEXT_EDITOR->SET_STATUSBAR_MODE
EXPORTING STATUSBAR_MODE = 0,
G_GEN_TEXT_EDITOR->SET_AUTOINDENT_MODE
EXPORTING AUTO_INDENT = 1.
Pass the text to the sales text container
CALL METHOD G_GEN_TEXT_EDITOR->SET_TEXT_AS_STREAM
EXPORTING
TEXT = TEXT_TAB.
endif.Try this way:
DATA: lo_dock TYPE REF TO cl_gui_docking_container.
DATA: lo_text_editor TYPE REF TO cl_gui_textedit.
DATA: lt_tab TYPE STANDARD TABLE OF char80.
DATA: la_tab LIKE LINE OF lt_tab.
DATA: w_carrid TYPE sflight-carrid.
** Selection Screen
SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME TITLE aaa.
SELECT-OPTIONS: s_carrid FOR w_carrid.
SELECTION-SCREEN: END OF BLOCK blk1.
INITIALIZATION.
* Docking container
CHECK lo_dock IS INITIAL.
CREATE OBJECT lo_dock
EXPORTING
repid = sy-cprog
dynnr = sy-dynnr
ratio = 80
side = cl_gui_docking_container=>dock_at_bottom
name = 'DOCK_CONT'.
IF sy-subrc <> 0.
MESSAGE 'Error in the Docking control' TYPE 'S'.
ENDIF.
* Text Editor
CREATE OBJECT lo_text_editor
EXPORTING
parent = lo_dock
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
gui_type_not_supported = 5
OTHERS = 6
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Set text
la_tab = 'This is test'.
APPEND la_tab TO lt_tab.
CALL METHOD lo_text_editor->set_text_as_r3table
EXPORTING
table = lt_tab
EXCEPTIONS
error_dp = 1
error_dp_create = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Naimesh Patel -
How to provide text editor in dialog program
i have a requirement to enter upto 300 words in a dialog box how to provide text editor in dialog program
you can use the custom controls for the same
check this below link may be useful for you.........
http://help.sap.com/saphelp_nw04/helpdata/en/2a/755b94ca5911d299af5c9604c10e27/content.htm -
Hi,
I am facing the problem that when I read the content of the
texteditor, store it in a javascript variable, and then write it
again into the editor area, all line breaks (not html line breaks,
just the line breaks for the code structure) are gone.
For Example if the content of the Editor is the following:
Test line 1
Test line 5
If I know call my function the value of the texteditor will
be somethign like: "Test line1 Test line 5"
I tried finding the linebreaks and replacing them (either \n,
\r or \n\r) but had no success in doing that.
My code of the function:
var theDom=dw.getDocumentDOM();
var temp = theDom.documentElement.outerHTML;
theDom.documentElement.outerHTML="";
theDom.documentElement.outerHTML=temp;
So I assume Javascript and dw are using different formats,
but I cant find much information about whats being used.
Any help appreicated!
Best,
DavidHi Brent,
Use CHR(10) in text editor for a new line. for example( 'SAP' & CHR(10) & 'Visual' & CHR(10) & 'Composer') will display like,
SAP
Visual
Composer
Hope it helps....
Regards
Basheer -
Can I open .ai file w/ text editor and edit linked file path?
I want to relink a placed file in a lot of illustrator files to a new file with a different name. I've tried setting up various actions but it is not doing what I need. If I open the file in a text editor such as Notepad++ or Text Wrangler, I can find the linked file path in two places, if I edit this path and save the file (still with .ai extension) I thought the link would change, but when I reopen the file, it does not change. Any ideas?
If I make an action to relink a file, the action will only place a new file but not replace the old one. I also can't get it to place into a specific layer.
Any ideas?CSS files are plain text with no links, so what you see is all there is.
In order to apply CSS to HTML, you need a <link> tag in your HTML.
If you install the Web Developer Extension from the Firefox add-ons site, there is a handy "Edit CSS" sidebar that lets you play with style rules and see the effects live. Note that this pane is not saved, so if you switch tabs, you lose your changes. Make sure to copy out any changes you want to remember. -
Using a different Rich Text Editor ?
Hi,
I'd like to know if you're using a different Rich Text Editor other than the one provided by Oracle ?
Are you satisfied with it ? Especially in the management of images ?
Thanks
Max.there is a textflow component
http://blog.flexexamples.com/2009/07/25/exporting-a-textflow-object-in-flex-4/
still exports to font tags unfortunately, but its closer than the richtexteditor. Its basically at the point where you could even write your own small parser and adapt the output to the format you desire. -
How to clear the text in the Text Editor
Hi all,
I created a Text editor and also i am having language field in the screen.
whenever i change the language auomatically the text has to change when the text exists for that
language.
this is working fine, but when the Text exist , the text editor should be blank.
But it is carrying the Previous editor text itself into it .
How to clear the text in the Editor.
Regards,
MadhaviHello Madhavi
The simple report ZUS_SDN_TEXTEDIT_CONTROL shows how to switch the texteditor contents when changing the language.
*& Report ZUS_SDN_TEXTEDIT_CONTROL
*& Thread: how to clear the text in the Text Editor
*& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1145272"></a>
*& By default the itab GT_OUTTAB contains texts in DE and EN.
*& To switch the language directly enter into the command window:
*& LANGU=DE, LANGU=EN or LANGU=FR
REPORT zus_sdn_textedit_control.
TYPE-POOLS: abap.
TYPES: ty_t_text TYPE TABLE OF as4text
WITH DEFAULT KEY.
TYPES: BEGIN OF ty_s_outtab.
TYPES: language TYPE spras.
TYPES: text TYPE ty_t_text.
TYPES: END OF ty_s_outtab.
TYPES: ty_t_outtab TYPE STANDARD TABLE OF ty_s_outtab
WITH DEFAULT KEY.
DATA: gt_outtab TYPE ty_t_outtab,
gs_outtab TYPE ty_s_outtab.
DATA: gd_language TYPE spras.
DATA: go_docking TYPE REF TO cl_gui_docking_container,
go_textedit TYPE REF TO cl_gui_textedit.
DATA: gd_okcode TYPE ui_func,
gd_repid TYPE syst-repid.
START-OF-SELECTION.
PERFORM fill_texts.
gd_language = syst-langu.
PERFORM init_controls.
* Link the docking container to the target dynpro
gd_repid = syst-repid.
CALL METHOD go_docking->link
EXPORTING
repid = gd_repid
dynnr = '0100'
* CONTAINER =
EXCEPTIONS
OTHERS = 4.
IF sy-subrc NE 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
PERFORM set_text_editor.
* NOTE: dynpro does not contain any elements
" ok-code => GD_OKCODE
CALL SCREEN '0100'.
* Flow logic of dynpro (does not contain any dynpro elements):
*PROCESS BEFORE OUTPUT.
* MODULE STATUS_0100.
*PROCESS AFTER INPUT.
* MODULE USER_COMMAND_0100.
END-OF-SELECTION.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS_0100'. " contains push button "DETAIL"
* SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
TRANSLATE gd_okcode TO UPPER CASE.
CASE gd_okcode.
WHEN 'BACK' OR
'EXIT' OR
'CANC'.
SET SCREEN 0. LEAVE SCREEN.
WHEN 'LANGU=DE' OR
'LANGU=EN' OR
'LANGU=FR'.
PERFORM get_text_editor.
SPLIT gd_okcode AT '=' INTO gd_okcode gd_language.
PERFORM set_text_editor.
WHEN OTHERS.
ENDCASE.
CLEAR: gd_okcode.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form FILL_TEXTS
* text
* --> p1 text
* <-- p2 text
FORM fill_texts .
* define local data
DATA: ld_string TYPE string.
gs_outtab-language = 'EN'. REFRESH: gs_outtab-text.
ld_string = 'Good morning'.
APPEND ld_string TO gs_outtab-text.
APPEND gs_outtab TO gt_outtab.
gs_outtab-language = 'DE'. REFRESH: gs_outtab-text.
ld_string = 'Guten Morgen'.
APPEND ld_string TO gs_outtab-text.
APPEND gs_outtab TO gt_outtab.
gs_outtab-language = 'FR'. REFRESH: gs_outtab-text.
ld_string = space.
APPEND ld_string TO gs_outtab-text.
APPEND gs_outtab TO gt_outtab.
ENDFORM. " FILL_TEXTS
*& Form INIT_CONTROLS
* text
* --> p1 text
* <-- p2 text
FORM init_controls .
CREATE OBJECT go_docking
EXPORTING
parent = cl_gui_container=>screen0
* repid =
* dynnr =
* side = dock_at_left
* extension = 50
* style =
* lifetime = lifetime_default
* caption =
* metric = 0
ratio = 90
* no_autodef_progid_dynnr =
* name =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT go_textedit
EXPORTING
* max_number_chars =
* style = 0
* wordwrap_mode = wordwrap_at_windowborder
* wordwrap_position = -1
* wordwrap_to_linebreak_mode = false
* filedrop_mode = dropfile_event_off
parent = go_docking
* lifetime =
* name =
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
gui_type_not_supported = 5
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " INIT_CONTROLS
*& Form SET_TEXT_EDITOR
* text
* --> p1 text
* <-- p2 text
FORM set_text_editor .
BREAK-POINT.
CLEAR: gs_outtab.
READ TABLE gt_outtab INTO gs_outtab
WITH KEY language = gd_language.
CALL METHOD go_textedit->set_text_as_stream
EXPORTING
text = gs_outtab-text
EXCEPTIONS
error_dp = 1
error_dp_create = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " SET_TEXT_EDITOR
*& Form GET_TEXT_EDITOR
* text
* --> p1 text
* <-- p2 text
FORM get_text_editor .
CLEAR: gs_outtab.
CALL METHOD go_textedit->get_text_as_stream
EXPORTING
only_when_modified = cl_gui_textedit=>true
IMPORTING
text = gs_outtab-text
* is_modified =
EXCEPTIONS
error_dp = 1
error_cntl_call_method = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
MODIFY gt_outtab FROM gs_outtab
TRANSPORTING text
WHERE ( language = gd_language ).
ENDFORM. " GET_TEXT_EDITOR
Regards
Uwe
Maybe you are looking for
-
Application express installation is failed while running apxdevrm.sql scrip
Hello Experts, i am new to Oracle Application express. My installation is failed while running the script (apxdevrm.sql). here is the command i ran as sysdba @apexins xxxxx apex apex temp /i/ installation is exited with the following error : REPORT:S
-
Is there a way to get Keychain to work with Firefox 3.5.1?
I can't figure out how to get Keychain to work with Firefox 3.5.1. It works fine with Safari 4.0.2. An assist would be greatly appreciated.
-
Hi Everyone: This is a very strange problem I've been having with my particular SWT application. Everything compiles fine, and even funs fine, but when I do run it, none of the GUI components are actually visible on the display. Here's the code: impo
-
How do I configure the HP5515 to default Airprint in B/W
I own a HP 5515 printer. Often I want to print in low quality B/W in order not to use much ink. When printing from iPad or iPhone I have no control over the print configuration. Is there a way to default the print quality? Regards, DickDral
-
HI I am trying to call a bdc in my workflow based on the user decission i.e. after user makes a particular decission it has to call BDC. I am using a call transaction statment for calling my BDC, I have defined a FM for the same the code i have writt