weimingtom / jsyntaxpane

Automatically exported from code.google.com/p/jsyntaxpane
1 stars 0 forks source link

Plain text editing #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is actually not a problem with jSyntaxPane.  It is perhaps an
enhancement I would like to see. 

Currently for my project, I would need to use jSyntaxPane to support 3
languages.
 1. XML
 2. Lua (I have posted the flex files on the mailing list)
 3. Plain text

The problem is, I wanted to have the benefit of the jSyntaxPane when I edit
plain text.  This includes the ruler feature and all the other great
features.  However, there seemed to be no method to do this currently.

I have created an almost empty flex file for plain text to solve this
problem.  I don't know if this is the most efficient way to do it.  Do you
have any suggestions?  Or if you think my method of doing it is fine, I
don't mind posting the plain text flex file here.

Thanks,

Michael

Original issue reported on code.google.com by fac...@gmail.com on 12 Mar 2009 at 9:17

GoogleCodeExporter commented 9 years ago
You should be okay for now.  But a better way will be to create a blank Lexer
implementation.  
I'll look for the best method.  And implement soon.
Thansk for the suggestion.

Original comment by ayman.al...@gmail.com on 12 Mar 2009 at 11:29

GoogleCodeExporter commented 9 years ago
Plain text editing added.  

If you need better plain text with matching for groups then a jflex lexer is a 
good
idea.  In that case, can you please open an enhancemnt request so I can track 
it.

Original comment by ayman.al...@gmail.com on 12 Mar 2009 at 12:14