Bloody newb: use syntax highlighting in Eclipse 3 for *.jsp?

Hi all
I'm developing in Java with Eclipse 3 and now I'm learning JSP on my own. I'd like to use the great Features of Eclipse 3 (like syntax completion etc) also in JSP files, but there's whether syntax highlighting nor completion or stuff.
Can you help me out how to use Eclipse with all its features as a JSP IDE? Thank you.
Josh

You need a plugin which supports JSP.
MyEclipse does (along with a lot of other stuff)
Lomboz also provides a jsp editor
You can find a whole lot of eclipse plugins at
http://www.eclipseplugincentral.com/
http://eclipse-plugins.2y.net/eclipse/index.jsp
Cheers,
evnafets

Similar Messages

  • Would like to use syntax highlighting in body text for code snippets

    I have a feeling this isn't actually possible without a whole lot of manual work, but I want to preserve syntax highlighting in code examples in my online help. Like this:
    All I can do is black text. |:^(
    I am using Robohelp 7, generating to WebHelp.
    Thanks for any help anyone can pass on!

    Hi all
    I'm not sure if it's a feasible solution for you, but what about displaying the code (complete with color coding - oops, that's colour coding for you English chaps) in whatever application you use. Then grab a screen capture of the relevant area and insert as an image in RoboHelp.
    My thought here is that you could maintain the code in the other app in case you need to change it at some point. Then if it does change, just snag another image.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Eclipse plugin for Jsp

    Can any body tell me which plugins I have to use in eclipse to compile and rum the jsp files.
    I have been searching for it in the net from quit a while. Cound not get any result.
    - Achyuth

    BEA Workshop for JSP is excellent. It is basically built on the eclipse platform with additions.
    http://workshopstudio.bea.com/download.do?banner_bea_bea&DL=www_Workshop-Studio_icon&WT.ac=DL_www_Workshop-Studio_icon
    SirG

  • Syntax Highlighting w/ Swing Text Package

    I have a question for you that I hope ever so much that you could answer just in the most abstract sense, I will figure out the code from what you have said hopefully. Any relavent parts that you think I should know, please point out.
    My question is, I'm trying to implement Syntax Highlighting for a code editor in Java (yes I know, like everyone else. It would REALLY be helpful if you did an updated Demo of a SyntaxEditor for JDK 1.4 BTW) anyway, I have already implemented Syntax Highlighting by overriding the PlainView and changing its drawLine method to parse the line, find the key words then draw them accordingly. However I cannot get over the sinking feeling that there is a better way to do this in JDK 1.4, I'm not worried about backward compatability. I'm only interested in the "sexiest" way to do this with Java. I started looking into the GlyphView, and that seems more of what I want, it has more control over the text elements and strong drawing abilities, I also noticed the GlyphPainter1 and GlyphPainter2, I tried to extend GlyphPainter2 and use it with my extended GlyphView and just change its paint method to parse the lines, but the class complains about not being public, even though in the source its class definition is "public class GlyphPainer2 extends GlyphView.GlyphPainter" which confused me.
    But at any rate, my basic question is how would YOU, implement Syntax Highlighting (code coloring) if you could do it from scratch with all the facilities of the 1.4 JDK. ALso, should I look into the Java2D API or is this over kill for what I'm doing? I just need a basic code color'er, nothing fancy. But I need the fonts and styles to be able to change, that's all. And international support would be nice.
    The type of answer I'm hoping for is something like "Create a new editor kit and then extend the GlyphView class and override its XYZ method to do your line parsing and then override the ABC method to do the actual painting of the line, this is the best way to do this in java"
    Best wishes,
    -rsk123

    I am searching for text highlighting code in java during 7 days.
    And I also agree with Mr. rsk123 's thought.
    I want to make editor to highlight code using java's general text package.
    But I can't find good source or class to satisfy me.
    Some code run well but it's not use the original java text package.
    Some code was made by using java text package but have a bug and not run pefectly.
    Now, I must choice a code for text highlighting.
    But until now I can't find a free code or comecial code for it.
    Anyway, I summarize my suffing result until now.
    ** I have stuied,
    . About java's text package in Swing Connection site.
    It's useful a little to understand the text package structure.
    (http://java.sun.com/products/jfc/tsc/articles/index.html)
    . How to make own EditorKit in 'Java Swing' book chapter 24.
    I think it's good. But difficult to read.
    (published by O'REILLY. Robert Eckstein)
    ** I have found program and have tested.
    1) JEdit (http://www.jedit.org)
    2) Jext(http://www.jext.org)
    3) Sun's sample using the JavaEditorKit
    (http://java.sun.com/products/jfc/tsc/articles/text/editor_kit/index.html)
    4) Ostermiller's Syntax editor (http://ostermiller.org/syntax/editor.html)
    5) j (http://armedbear-j.sourceforge.net/)
    6) je 1.66 (http://mathsrv.ku-eichstaett.de/MGF/homes/grothmann/je/)
    *** Detail descriptions of the test
    1. May be run well but not use java text package.
    ==> JEdit (http://www.jedit.org), Jext(http://www.jext.org)
    - I executed JEdit and Jext program. it works very well.
    I think It's greate programs.
    - The editor class for these programs are
    org.gjt.sp.jedit.textarea.JEditTextArea class.
    The JEditTextArea class extends JComponent, not java text component.
    - JEditTextArea class started from 'jedit syntax package project'.
    You can download the syntax package if you only use syntax highlighting
    from http://syntax.jedit.org/ .
    - JEdit and Jext use for editor 'jedit syntax package' but have upgrade that
    package their own effort(may be)
    - For me, It's an only product run well without error.
    But unfortunately it's not use java text component.
    So I hesitane to use it.
    Because I should make almost code to support general editor function which
    supported in JTextComponent.
    2. Provided by Sun's developer site.
    ==> JavaEditorKit (http://java.sun.com/products/jfc/tsc/articles/text/editor_kit/index.html)
    - It's made using JEditorPane. Great!!
    And have a good architecture. (I think)
    - But It use Scanner class which located in tools.jar package and
    have a bug which not supporting well comment syntax /* */.
    (Refer to http://developer.java.sun.com/developer/bugParade/bugs/4323090.html)
    Futhermore it display terrible exception message when typed "/*" string
    in the end position of java file. (I tested it)
    - I heard in the forum, someone made the own scanner class.
    (http://forum.java.sun.com/thread.jsp?thread=120564&forum=57&message=316083)
    He said,(he = rofshi)
    I wrote for my purposes a scanner based on the StreamTokenizer
    cl*** and set a corresponding object in the JavaView cl*** of
    the JavaKitTest.
    Then I placed the method of my Scanner cl*** that parses the
    given string and paints tokens in the method drawUnselected
    Text (instead of previous code).
    Of course, I erased all of the previous code related to the
    java Scanner.
    - For me, I like this style code and want to use it.
    But Scanner class have some bug and I can't cure that bug. Terrible...
    3. using JTextPane
    ==> http://ostermiller.org/syntax/editor.html
    - At first it's too slow.
    My computer is PentiumIII 350MHz Ram:256M Windows2000Por
    But when I press pgDown key quickly the display couldn't follow it.
    - And may be not support unicode.
    When I typed international code, exceptions displayed.
    (too much exceptios. may be caused repeating by thread.)
    (ArrayIndexOutOfBoundsException in JavaLexer.java 1022 ?)
    - For me, supporting international code is essential.
    So I can't use it.
    4. Do work well. But it use not understandable code for me.
    (not use general java text package)
    1)http://armedbear-j.sourceforge.net/
    2)http://www.rene-grothmann.de
    *** Finally, I have plan to make my own code using Mr rsk123's idea.
    (using GlyphView in jdk1.3 or jdk1.4)
    *** If you have a good information for text highliting of free code or
    comecial code pleas notify me.
    My address is [email protected]

  • How to apply Syntax Highlighting in JTextArea

    Hi folks.
    At the moment my program does this:
    The user can drag and drop images into an environment which corresponds creates a Java file.
    So there is a panel that the user can drag images from and drop them to another panel. This in turn creates a Java file which is displayed at run time in a JTextArea.
    I would like to use syntax highlighting here. I have come across a couple of similar questions in this forum but so far haven't found a great example.
    Can anyone please point me to a good tutorial/example?
    Many thanks.

    lobrien9 wrote:
    I am already using NewtBeans. I had a look at that link but I can't seem to find any information regarding using the NetBeans editor in my own application.You're probably using the NetBeans IDE as your development environment. But this IDE has been developed in a modular way, so you can reuse parts of it to build your own application. Such a framework is call a RPC (rich client platform). The NetBeans IDE itself is build on this NetBeans Platform. I just started to read about it myself, but I think it's worth a try. Of course it's not a simple task to get to know this framework, but if your building Swing GUIs frequently it might be worth the effort. There are some books around about this topic. Search the NetBeans homepage for book references.
    -Puce

  • [self-SOLVED]vim + lilypond syntax highlighting

    I'm trying to get vim to use syntax highlighting in lilypond files. Apparently lilypond comes with the necessary files, but I have not been able to make vim find them (?). I am not very experienced with vi(m), so there might be something wrong with my setup.
    I have, of course, both vim and lilypond installed. The files for lilypond syntax highlighting are in subdirectories of /usr/share/lilypond/2.12.3/vim/. Vim syntax highlighting works for other files, such as C++, HTML, etc., so no problem there. My ~/.vimrc file contains
    set runtimepath+=/usr/share/lilypond/2.12.3/vim/
    as per instruction given in http://lilypond.org/doc/v2.12/Documenta … m/Vim-mode (and the path is correctly modified). But when I open a lilypond file (with the correct .ly suffix) all I get is black and white. What's the problem?
    [EDIT: Oh heck, nevermind! Apparently I was getting too tired to read instructions properly. Was missing the ~/.vim/filetype.vim file described in the above link.]
    Last edited by lotuskip (2010-04-12 18:33:42)

    You're right about it being overridden.  This change should be able to be placed in ~/.vimrc though.
    Well  that was foolish - I should have read the comments right below in that file.  It says exactly how to set it in vimrc.  I've now added the following to my ~/.vimrc and this is completely solved without modifying the /usr/... file.
    let g:tex_flavor = "tex"
    Last edited by Trilby (2013-03-29 16:11:26)

  • Syntax Highlighting in nano?

    After seeing nano running on a Linux machine while editing a python file I realised that it was different from my mac version which lacked the beautful syntax highlighting. Anyway to get syntax highlighting? and update the nano version? -Cheers

    How to use syntax highlighting with the GNU nano text editor

  • Syntax highlighted program code in keynote?

    Is there any easy way insert programming code (in my case Ruby code) into a slide so it shows up with syntax highlighting and formating suitable for the code?
    I.E. so it looks like the highlighted code in Textmate or other gui editors?

    TextWrangler (and thus presumably BBEdit) do preserve their syntax colouring when PDFed, as does Taco HTML Edit. My guess is that this is capability is an app-by-app feature.
    If you were desperate for a PDF output to Keynote, you could always copy the text from Textmate and paste it into the freeware TextWrangler. You would likely have to adjust the default syntax colouring to match Textmate, but that would be relatively straightforward.

  • Using parsed XML as data format for MVC implementation

    Instead of using Beans to contain the data for JSP pages I want to use XML objects. For example, a 'Document' object which represents XML data.
    I should then be able to interface easily with web services -some clients might require the raw xml string. Furtermore, I am not tied to JSP. I could use XSLT or browser based XSL stylesheets.
    The interface between my controller and processes will then also be a 'Document' instead of pre-defined methods.
    I would like to know what are the pros and cons of my approach? Is this kind of design used anywhere?

    This is not really any direct answer to your question.
    However, it may serve as food for your thoughts.
    Have you read http://java.sun.com/products/jsp/html/JSPXML.html and http://www.javaworld.com/javaworld/jw-03-2000/jw-0331-ssj-jspxml.html

  • Syntax highlighting, autotabbing in Eclipse?

    Pardon, is there a way to make Eclipse do syntax highlighting and autoindentation a la Vi? I need to use Eclipse because I've got homework involving Java, and features beyond those of a basic text editor could come in handy, methinks.
    (I know the options should be in some obvious location, but I've managed to miss them somehow... :? )

    Er, it does that automatically from a default setup.
    Are you saying that you have no highlighting at all?
    How did you install Eclipse, via pacman or download it yourself from the website? I ask because a couple of years ago when Eclipse was starting to become popular, I downloaded the Eclipse platform, only to find that I got the base system, without any Java IDE features. You see, the language support is in the form of additional plugins. That's why Eclipse can in fact be a Java, Python or C++ IDE, etc, providing someone has written the plugings to make it so.
    Nowadays, the default download (Eclipse SDK) is bundled with the Java dev stuff. For me, it has always worked fine, out of the box. No need to enable highlighting or indenting.

  • Help required in syntax highlighting in xml using tool Syntax

    hi
    i am using Syntax tool for syntax highlighting of xml in JTextpane. I use complex html style and i want to change the colors of the displayed xml in the tool under complex html like the internet explorer displays in case of xml i want to make my xml like that..

    Hi,
    use it like this if Fname equals constnat[space] then pass the Constant[space] to Fname else value of Fname as under
    ................................Constant[]------>
    FNAME.............................................Then
    >Equals....................................IF -
    >FNAME
    Constant[].........................................ELSE
    .......................................FNAME---->   
    Constant[]    = Constant [ Space ]
    Sachin

  • Syntax highlighting using JTextPane

    Hello,
    Does somebody know how to achieve quick, efficient syntax highlighting using JTextPane. I have tried it out by actually removing and reinserting the colored text, but it is way too slow. It is worse if I do it in a thread. It will be a great help if somebody bails me out of this problem.
    S. Senthil kumar

    Let me see if I understand your problem...you are attempting to open a fairly large file and then highlight certain portions of the text. You're asking for help on how to efficiently do this and several people gave you links on how to highlight text which leads to your last question about the files taking too long to load. How big are these files you're talking about and how long does it take for them to load? What time is acceptable? Remember, all commercially available document display programs have a certain load time which grows larger as the document it is attempting to display grows in size.
    -Kevin

  • Query syntax highlighting lost when using national characters.

    Theres a minor bug with syntax highlighting. If I have a query in sqldeveloper like -
    select * from table
    where name = N'fred'
    and ... ... ...
    All the coloured syntax highlighting is lost from the N' onwards.
    Edited by: [email protected] on 24-Feb-2009 03:18

    Hi jonathanthomas,
    Since this issue is related to the web development,
    you could ask this question in the ASP.NET forum:
    http://forums.asp.net. If then, you could get
    an answer more quickly and professional. Thanks for your cooperation.
    Best Regards,
    Jack
    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.

  • Syntax Highlighting Tutorial

    Can someone point me to a good Syntax Highlighting Tutorial? I plan on using a JEditorPane and I found this little page:
    http://java.sun.com/products/jfc/tsc/articles/text/editor_kit/
    but it appears to be old and I figure that some things might had changed. Thanks, Jeremy

    Hi, I am using xtext 2.4.
    I replace
    / The antlr parser generator fragment.
    fragment = parser.antlr.XtextAntlrGeneratorFragment auto-inject {
    options = {
    backtrack = true
    to
    fragment = org.eclipse.xtext.generator.parser.antlr.ex.rt.AntlrGeneratorFragment auto-inject{
    options = {
    ignoreCase = true
    and
    fragment = parser.antlr.XtextAntlrUiGeneratorFragment auto-inject {}
    to
    fragment = org.eclipse.xtext.generator.parser.antlr.ex.ca.ContentAssistParserGeneratorFragment auto-inject{
    options = {
    ignoreCase = true
    , not only doesn't work but it also break my UI editor.
    The error red cross becomes un-clickable.
    Any help?

  • Syntax highlighting not working with label on if statement in fortran in Visual studio 2010

    I am having a difficult time in figuring out the syntax highlighting in Visual studio. I am using fortran code and there are labels in if statements as follows: 
                if_2003: IF (FRAC_PBED(NNSED,L).LT.0.0.AND.
         +                   FRAC_PBED(NNSED,L).GT.SMALL_NEG_NO) THEN
                  FRAC_PBED(NNSED,L) = 0.0
           TSED_PBED(1,NNSED,L) = 0.0
         END IF if_2003
    So the problem I am having is when I click on the `if` next to label `if_2003`, then I cannot use `CTRL + ]` to move to the ending `if`. If there is no label before `if`, then the shortcut is working fine. I don't know what I could do so that it would start
    behaving as it is supposed to. 
    In the contrary, when I have do loop as follows: 
        do_410: DO NNSED=1,NSTD
             D50AVG(L) = D50AVG(L) + 
             +                 FRAC_ALAY_SURF(NNSED,L)*D50(NNSED)/10000.  ! BASED ON BED COMPOSITION
        C
             TSED_ALAY_SURF(2,NNSED,L)=TSED_ALAY_SURF(1,NNSED,L)
             TSED_ALAY_BUFF(2,NNSED,L)=TSED_ALAY_BUFF(1,NNSED,L)
             TSED_PBED(2,NNSED,L)=TSED_PBED(1,NNSED,L)
                  END DO do_410
    I can move to the end/start of `do` loop using the keyboard shortcut `CTRL + ]`. Any suggestions is appreciated.  
    Regards, Jdbaba

    Hello Jdbaba,
    Based on my research, your post is related to use fortran in Visual Studio:https://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-for-windows-build-intel-mkl-program-with-intel-fortran-in-microsoft-visual-studio This
    technology is provided by Intel. So the question should be consulted on Intel fortran related forum. Not Visual Studio Setup forum, setup forum is about install/uninstall Visual Studio.
    Best regards,  
    Barry
    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.

Maybe you are looking for

  • Posting contact form to variable email address PHP

    Hi all, another one! I want the email address to be the hidden variable in the form below - variable higlighted in Red. What would I put for "$to ="? Any help would be appreciated. Tom <?php if (array_key_exists('send' , $_POST)) {           // mail

  • How to print 2 copy of same page in smartform

    Hi, I have a form having one page which contains Main and few other windows. I have a template in Main window. My requirement is to print two copy of this page whenever print pgm gets executed. I tried by copying FIRST page as DUPLICPAGE and put this

  • My search bar (FF 22) has suddenly become inoperable; hitting enter doesn't do anything (am only getting to sites via bookmarks and links now)

    I'm a long-time FF user. Am using version 22 now (which appears to have updated from 18 by itself though I had it set to ask me before updating - but 22 2 worked fine for me once I'd solved the problem of screen being so large it hid my upper menu an

  • Windows XP OEM Full

    Hi, is it possible to install Windows XP OEM without SP2, and after instalation upgrade it to SP2? I asking this because I have the 2002 version of XP. Thanks, Biga

  • Picture quality in iChat

    Greetings all - New to iChat use. A couple of questions - just hooked iSight to my Mac (G5 1.8ghz dualie) and to my daughters eMac (G4). When using iChat my picture in screen is clear, but reception from my daughter's is highly pixelated, and more so