Display formatted code in html output

Howdy,
I'm looking for preferably a JSTL tag (library) that is capable of transforming a code fragment into neatly formatted code, with syntax highlighting, tab preservation, line numbers, stuff like that. I'm sure they should be out there somewhere, it's just that I can't find them anywhere using Google, or I'm just using the wrong terms :/.
So, if anyone happens to know about a code formatting tool for JSP / JSTL pages, I'd be much obliged.

Here are some new keywords to Google on: 'java highlighter', 'java source highlighter', 'java2html', 'java2xml', etcetera.

Similar Messages

  • Help with formatting parameters in html output?

    Hi --
    I would like to use a style sheet to adjust the way that javadoc displays lists of parameters below each method. In the HTML output, the code around the parameter name and description looks like this:
    <dd><code>filterContainers</code> - True if the containers within the database
    are to be considered individually during task assignment; false if the entire database is to be assigned as a single task.
    </dd>
    I apologize if this is basic CSS question, but I don't understand how to change the way 'filterContainers' is formatted -- maybe make it italic or something. I was also hoping to increase the padding below each parameter name/description because they seem to squished together.
    Any help is greatly appreciated.
    Jen

    Add this to stylesheet.css to make "filterContainers" italic:
    dl dd dl dd code {
    font-style: italic;
    }This adds space below lines inside dd
    dl dd dl dd {
    padding-bottom: 3px;
    }(You could change it to padding-top to add the space above instead.)
    The sequence "dl dd dl dd code" is the nested hierarchy of HTML tags relative to body.
    Here are the CSS elements defined above: (CSS 2.0)
    http://www.w3.org/TR/2005/WD-CSS21-20050613/propidx.html

  • Display format code instead of AcctCode

    hi all,
    i have the ff. Stored Procedure
    USE [Production]
    GO
    /****** Object:  StoredProcedure [dbo].[Cuztom_AcctBalance]    Script Date: 02/04/2013 08:48:42 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER PROCEDURE [dbo].[Cuztom_AcctBalance]
    AS
    BEGIN
              SET NOCOUNT ON;
    SELECT    
                                  JDT1.RefDate,
                                  JDT1.TransId,
                                  JDT1.TransType,
                                  JDT1.BaseRef,
                                  JDT1.ContraAct,
                                  JDT1.LineMemo,
                                  JDT1.Debit,
                                  JDT1.Credit,
                                  OACT.AcctName,
                                  OJDT.Number,
                               OJDT.BaseRef AS [OJDT-BaseRef],
                                VPM1.CheckNum,
                               OACT.AccntntCod,
                               OACT.FormatCode
    FROM         OJDT INNER JOIN
                          JDT1 ON OJDT.TransId = JDT1.TransId LEFT OUTER JOIN
                          VPM1 ON OJDT.BaseRef = VPM1.DocNum LEFT OUTER JOIN
                          OACT ON JDT1.Account = OACT.AcctCode
       END
    my purpose of this StoredProc is to generate a customized G/L Account Balance(when we click the orange arrow in the Chart of accounts) that is similar with the default in SBO, but in the column Offset Account it display the AccoutCode which is something like _SYS0000000xxxx, the user cannot understand this _SYS0000000xxxx, what the user can understand is the FormatCode...
    please help and thanks in advance.
    Fidel

    Hi Fidel,
    Try:
    SELECT      
      T1.RefDate,  
      T1.TransId,  
      T1.TransType,  
      T1.BaseRef,  
      T4.FormatCode 'Offset Account',  
      T1.LineMemo,  
      T1.Debit,  
      T1.Credit,  
      T3.AcctName,  
      T0.Number,  
      T0.BaseRef AS [OJDT-BaseRef],  
      T2.CheckNum, 
      T3.AccntntCod, 
      T3.FormatCode 
    FROM  OJDT T0 INNER JOIN 
          JDT1 T1 ON T0.TransId = T1.TransId LEFT JOIN 
          VPM1 T2 ON T0.BaseRef = T2.DocNum LEFT JOIN 
          OACT T3 ON T1.Account = T3.AcctCode LEFT JOIN 
          OACT T4 ON T1.ContraAct = T4.AcctCode
    Thanks,
    Gordon

  • Has anyone seen an email display formatting code embedded in the email?

    Can this be removed or is there a setting to change this. It appears normally in Outlook and Mail.

    SIRacer09, I think I have the same issue as you are describing. Some users at my company, when they go into the outlook calendar to open up the meeting invite, the webex meeting info would be missing. It would look something like this:
    XXXXX invites you to attend this online meeting.
    Topic: LS Q1 Town Hall
    Date: Tuesday, April 7, 2015
    Time: 9:00 am, Pacific Daylight Time (San Francisco, GMT-07:00)
    Meeting Number: 000 000 0000
    Meeting Password: WeRock
    To join the online meeting (Now from mobile devices!)
    Normally there are the links and other info of the meeting there. But now its just ------------------------------ this.
    To fix this, I had to tell the meeting organizer to resend the invite and it would be fixed.
    Any ideas?

  • Formatting code and output with Courier font

    Hi,
    I have several problem in inserting code and output for SQL and PL/SQL.
    I.e.:
    If I insert the code below formatting usin Syntax highlight as SQL:
    SELECT empno, sal
      FROM emp
    WHERE sal > ALL (2000, 3000, 4000);
    Is there a way to have Courier as font to retain the correct indentation?
    Another problem. Suppose that I run the query below:
    SELECT *
      FROM emp
    WHERE deptno = 10;
    and I want to paste the output as Courier:
    If I copy and paste the output from SQL Plus:
    EMPNO ENAME 
    JOB         
    MGR HIREDATE    
    SAL  
    COMM
    DEPTNO
    7782 CLARK 
    MANAGER    
    7839 09-JUN-81  
    2450               
    10
    7839 KING  
    PRESIDENT       
    17-NOV-81  
    5000               
    10
    7934 MILLER
    CLERK      
    7782 23-JAN-82  
    1300               
    10
    It is pasted as a table. Even changing the font is not helping to have a good formatted code (note the header not aligned with data columns).
    I can use HTML code to paste it. I.e.:
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    10
          7839 KING       PRESIDENT            17-NOV-81       5000                    10
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    10
    But it is taking quite a lot to paste the code.
    Any suggestion?
    Regards.
    Al
    Message was edited by: AlbertoFaenza

    BluShadow wrote:
    Well, I hope they get around to using fixed space fonts on the Syntax Highlighting options, as I quite like the fact it creates line numbers for the code, as that will be useful when discussing issues.
    I agree Blu. The line number is useful. If they only can use a fixed space font would be perfect.
    I also have the problem that randomly my output is pasted as a HTML table and still could not understand why it happens.
    This one i.e.:
    EMPNO ENAME
    JOB        
    MGR HIREDATE   
    SAL 
    COMM
    DEPTNO
    7369 SMITH
    CLERK     
    7902 17-DEC-80  
    800              
    20
    7566 JONES
    MANAGER   
    7839 02-APR-81 
    2975              
    20
    7788 SCOTT
    ANALYST   
    7566 19-APR-87 
    3000              
    20
    7876 ADAMS
    CLERK     
    7788 23-MAY-87 
    1100              
    20
    7902 FORD 
    ANALYST   
    7566 03-DEC-81 
    3000              
    20
    I notice that just adding a blank line as first line solve the issue.Regards.
    Al

  • Image not displayed in html output used webservice to store in a location

    hi
    we have used webservices to store the pdf and html outputs but the problem is when we are seeing the preview in the bi publisher we can see the image in pdf and html but when we run through webservices and see the output files that are stored in some location image in the html output is not displayed but in the pdf we can see the image.
    i have used the direct insertion image option in the header section. is the problem because i have used the direct insertion.
    can you give the idea how to import logo from an external location so that we can check the if it is problem with direct insertion or problem with the webservice as we are storing the output files outside the catlog but it may not be wrong because in pdf we can see the image.
    I am not having any idea how to solve thsi issue..
    Sorry to bother you with these many questions
    Thanks in Advance
    Have a Nice day.

    Please state which BI Publisher version you are using.
    In case it is 10g then please always test the application with the latest patch first!.
    BTW today there is been a new patch 11846804 released for 10.1.3.4.1 (March 2011).
    regards
    Jorge

  • Need Formatted html output from Xalan

    We use xalan xslt processor to convert
    xml document to html. Everything works
    fine, except the output is unformatted html.
    (ie. several HTML elements appear on the
    same line. Some lines are longer than 1000
    characters). This happens inspite of me
    specifying the HTML elements in different
    lines in the xsl.
    I would like to know if there is any way, I can generate formatted html output.
    Thanks

    have u tried
    <xsl:output indent="yes"/>
    in your stylesheet?
    ravi <[email protected]> wrote:
    We use xalan xslt processor to convert
    xml document to html. Everything works
    fine, except the output is unformatted html.
    (ie. several HTML elements appear on the
    same line. Some lines are longer than 1000
    characters). This happens inspite of me
    specifying the HTML elements in different
    lines in the xsl.
    I would like to know if there is any way, I can generate formatted html
    output.
    Thanks

  • How to format html output of a servlet

    Hello.
    My servlet/JSP is processed by custom tags and XSL Translation.
    After all its HTML output looks not formatted.
    How to format it?
    It is possible in a standard way (using a web.xml'd directive)?
    What roughly I want:
    <html>
      <body>
      <body>
    <html>

    I'd try
    indent="yes" in your XSLT's<xsl:output .../>element.
    Hope this helps,
    -Scott

  • Image path in HTML output

    Hi all,
    I'm trying to deliver a BI report using the ftp device.
    The report is delivered in HTML format correctly, but
    when I try to open it, images that should display charts
    are not visible.
    Giving a look at the HTML code I've noticed that the image
    source path is:
    <img src="/xmlpserver/xdo/tmp/xdoimgZA4ql3v7Hz31567.gif">
    which is not the correct path.
    Is there a way to automatically set that path when the
    report is delivered?
    Thank you in advance,
    Roberto

    If you were to output the same report as PDF instead of HTML, I'm guessing the PDF file would contain the actual image. (Am I right anyone?) However, when you output as HTML, there is no way to embed an image in the HTML output.
    HTML can only reference external images via URLs, so it appears from your output HTML code that BI Publisher creates a temporary GIF image and allows it to be referenced via that unique URL. Who knows how long that URL is valid?
    After you FTP the output to another server, the <img src> reference is no longer valid, because the path in the src attribute is relative to the HTML file itself. The FTP'd report might show the image if you edit the HTML file so the src attribute includes the full URL to the image:
    <img src="http://bi.publisher.host:port/xmlpserver/xdo/tmp/xdoimgZA4ql3v7Hz31567.gif"/>
    But again, how long does BI Publisher cache the image, and how long until the login session times out so you can no longer access it anyway? Note that you would have to use the same browser session to view the FTP'd report as was used to run the report in the first place. In other words, run the BIP report initially using a browser on the host that is the FTP destination for the report. Then edit the <img> tag, and finally open the HTML file in the same browser.
    A note to other readers: Images in RTF templates are often used as mere placeholders for charts created when the report is run. It is the "Alternate Text" assigned to the dummy image that tells the XSL-FO processor how to replace the image with a chart displaying the report output data.
    To solve this problem in a more supportable way, please see this Tim Dexter blog entry:
    http://blogs.oracle.com/xmlpublisher/2006/10/31/
    Edited by: Multiverse on Aug 15, 2009 7:59 PM (added Tim Dexter blog reference)

  • Display formatted text

    How to display the formatted text from access memo field
    using coldfusion without loosing the formating of the text. Please
    help.

    user341975 wrote:
    > I tried it but it will not retain the formating. For
    example the following is
    > my content
    >
    > Application Phases:
    > ? Phase 1
    > ? Phase 11
    > ? Phase III
    >
    > I am saving it to access database. If i run access
    report, it exactly displays
    > like this but when i output the column value using
    cfoutput the i get the
    > following results
    >
    > Application Phases:? Phase 1? Phase 11? Phase III
    >
    > Thank you
    >
    You text is space formated. Normal HTML ignores multiple
    white spaces.
    That is why the <pre> & <code> tags exist.
    Put your output between
    <pre></pre> tags and you will get what you want.

  • Help: No Parameters, HTML Output from Java Servlet

    I have a Java Servlet that reads parameters passed from an HTML form and displays them to another HTML page. I know the servlet is being invoked; however, I am not seeing any HTML output. Sending the output to a file reveals the parameters are coming in as NULL as well.
    I attempted a simple sample app with the same results. Here is what I am running:
    The HTML Form:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE>Collecting Three Parameters</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FDF5E6">
    <H1 ALIGN="CENTER">Collecting Three Parameters</H1>
    <FORM ACTION="ThreeParams">
    First Parameter: <INPUT TYPE="TEXT" NAME="param1"><BR>
    Second Parameter: <INPUT TYPE="TEXT" NAME="param2"><BR>
    Third Parameter: <INPUT TYPE="TEXT" NAME="param3"><BR>
    <CENTER><INPUT TYPE="SUBMIT"></CENTER>
    </FORM>
    </BODY>
    </HTML>
    The Java Code:
    public class ThreeParams extends HttpServlet {
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    String title = "Reading Three Request Parameters";
    out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 " +
         "Transitional//EN\">\n" +
    "<BODY BGCOLOR=\"#FDF5E6\">\n" +
    "<H1 ALIGN=\"CENTER\">" + title + "</H1>\n" +
    "<UL>\n" +
    " <LI><B>param1</B>: "
    + request.getParameter("param1") + "\n" +
    " <LI><B>param2</B>: "
    + request.getParameter("param2") + "\n" +
    " <LI><B>param3</B>: "
    + request.getParameter("param3") + "\n" +
    "</UL>\n" +
    "</BODY></HTML>");
    What happens when I "submit" from the form is the same form reloads with the query string in the URL: "http://localhost:8080/ThreeParams/?param1=1&param2=2&param3=3"
    Any assistance with either (or both) would be thoroughly appreciated:
    a) why the parameters are not being passed correctly to the servlet
    b) why the HTML output page is not displayed
    Thanks in advance!
    - Steve

    I have found the answer to my problem listed in another thread.
    Thank you.

  • XML Publisher Report not displaying Chart/Graph in Excel Output

    Hi All,
    We are currently on Oracle EBS 11.5.10.2
    I am facing an issue with XML Publisher based report when i try to fetch the output in Excel.
    We have created an RTF in which i have embedded a graph. While viewing the output in PDF everything seems to work fine.
    however when i try to run the report with output as Excel the Graph is not displayed.
    Can you please let me know if i missed anything.
    Also it would be very helpful if someone can tell me how to get the output of Excel in .XLSX format.
    I have seen in various forums that you need to select the output type as Excel 2007, but i am not getting any such option while submitting the report.
    I am on EBS version 11.5.10.2 do we need to install any patch to get the output option.
    Regards,
    Sandeep

    Hi,
    Check this links that might help you..
    https://forums.oracle.com/thread/1018488
    http://docs.oracle.com/cd/E10091_01/doc/bip.1013/e05000/toc.htm
    Here the Exact solution from Oracle
    In the XML PUBLISHER ADMINISTRATOR Resp..
    Click the administration..
    then Click HTML Output
    Then in the Base Image URI Give the url of your application for example
    http://Test.Test.com:8000/OA_MEDIA/
    And then
    Image File Directory give this as per your application setup
    /u01/app/oracle/apps/apps_st/comn/java/classes/oracle/apps/media/
    Thanks & Regards
    Srikkanth.M

  • Can SQL Developer be used for Oracle Support "HTML Output" Diag Scripts ?

    Hi All,
    Oracle Support has asked me to run a diagnostic script (OTL_Diag.sql for anyone familar with the script) that produces output in HTML format using SQL*Plus to help troubleshoot an OTL problem we are having. Unfortunately I don't have SQL*Plus installed and my company is not on board with me installing it because of the SQL*NET connection required. Instead I have access to SQL Developer 3.1.0.7. While this works fine for most situations I'm having problems generating the required .html output file that Support needs.
    I've tried runing the OTL_Diag.sql a couple of ways using SQL Developer. First, I opened the file from SQL Developer and using the Run Script functionality (F5) I executed the code that way. This method did give me an opportunity to input the necessary parms and it did create the 'start' of the HTML file on my (Windows) file system, but the script seemed to abort with a java error that indicated some sort of format error (sorry, I'm not a java person so I can't provide any more info, but I'll be glad to get the exact error message if anyone thinks that will help solve my issue).
    My second approach was to open a SQL Window where I typed in @C:\OTL_Diag.sql without quotes. This approach also gave me the opportunity to enter the necessary input parms and it seemed to end normally. It also created the 'start' of the diaganostic output file on my Windows file system, but it 'completed' before any of the 'real' diaganostic output was written to the .html file.
    The Metalink note clearly specifies that the OTL_Diag.sql script is to be run with SQL*Plus 10.2 or above so I don't think I can complain too loudly to Oracle about this...but given that I don't have access to this product (and it is useless for me to again ask to install it) I am hoping someone out there has some ideas or insight as to how I can use SQL Developer to execute this diag script in a manner that will produce the required .html output file.
    Thanks in advance to anyone taking time to read my post !!
    Jeff
    Edited by: user13111861 on Jul 10, 2012 6:43 PM
    Edited by: user13111861 on Jul 10, 2012 7:51 PM

    >
    As a result, at this point in time my only available tool to run the OTL_Diag.sql script (provided by Oracle Support) is SQL Developer
    >
    Then you will have to edit the script, break it into pieces, execute each piece manually and save the output to feed into the next piece as required based on what the script is actually doing. Don't post the script or contents as that will likely violate your support agreement.
    As I already mentioned the script may be using syntax and/or commands that are simply not supported by sql*developer. One likely area is the script may be producing intermediate output scripts that are then processed by a later portion of the script. If that is the case then my suggestion to execute the pieces manually should work but you will need to do some trial-and-error to see.
    Even if you appear to be successful you will still have an issue when you communicate the results of your 'test' to Oracle support and they determine you didn't follow their instructions to use the proper tool.
    Sounds like your management is either ignorant or incompetent so I suggest you cover yourself by documentating the instructions from Oracle support and the direct orders you were given to disregard those instructions. No need to discuss that issue further but clearly there are resources available somewhere in the org that has the proper privileges or they wouldn't be able to maintain and support the database. If they want to pay for support they should heed their advice. Nuff said.

  • Tabs in HTML output

    We have a very large RoboHelp for Word project (24 source
    files, 2500 topics). Do to Vista issues we are converting from
    WinHelp to HTML output.
    In the Word source files, allignment (within lines) is
    controlled by left Tabs. The WinHlep output is fine. It appears the
    the tabs (as well as multiple spaces) are ignored in the
    HTMLoutput. A review of the HTML spurce code reveals that tabs are
    coverted to &nbsp on compilation.
    What are my options?

    > I do suppose there is always the option of continuing to
    author using RoboHelp for Word. After all, you may use this
    > to produce HTML Help and WebHelp outputs too. But if you
    are creating HTML outputs you may as well be using a
    > tool created to work with such files, no?
    With all due respect, Rick (and much is indeed due in the
    right contexts) this doesn't help the original poster. The tabs
    issue is as you point out a quirk of the HTML world, and the only
    benefit of moving to an HTML editor in that respect is to make it
    apparent up front that tabs can't be handled sensibly. As you say,
    get used to it - if you are using HTML-based output, you can't line
    things up with tabs. You can use tables, but that's a major editing
    operation with 2500 topics whatever tool you are using to write the
    help. I suppose the dignity of the problem depends on how important
    the lining up is in the final output.
    I may be reactionary, but I stick to Robohelp for Word even
    when I am generating Webhelp format. Sure, there are drawbacks, but
    IMHO Word offers a vastly superior authoring environment to
    one-topic-at-a-time HTML editors. The HTML editor might be a tool
    created to work with HTML files, but that doesn't automatically
    mean it's a good tool for the job.

  • Bitmap and shed images in HTML output

    Hi All,
    I've recently switched my primary layout from WinHelp to HTML
    Help to prepare for Vista. I'm using RoboHelp for Word X5.0.1.
    Should I be worried about the shed load of small bitmap
    images that exist throughout the project? It would certainly take a
    long time to convert those to jpg or gif.
    Also, my shed images are not being displayed in compiled
    output (I get the little box with a "?" instead). Is the shed image
    format incompatible with HTML Help?
    Thanks,
    Jon
    P.S. I'm learning UK slang from reading this website. I am
    sure to impress my coworkers in the US, right?

    Hi Jack,
    Please follow the guidelines exposed here:
    http://blogs.oracle.com/xmlpublisher/2006/10/one_of_our_images_is_missing.html
    Hope this helps
    Cheers
    Jorge
    p.s. If this answers your question please grant the points and close the thread

Maybe you are looking for

  • Thinking about buying new mbp and have a 2009 mbp

    would I be able to just simply get the non ssd model and then take the ssd out of my old one put it into the new one and it should just work? I don't like the idea of backing everything up, taking my ssd out of the old one putting it in the new one t

  • How to see document file name with full path when hovering mouse over title bar?

    Using PS CS6, Windows 7 x64. I was under the impression that when hovering my mouse over the document title bar, I would see a tooltip showing the full file name, including the path.  This isn't happening and I'm wondering if there is a way to do thi

  • New Barlclaycard rewards going to be chip and pin?

    So now that we know that the rewards card is going to be available with a chip I sent them a message to see when I can get it. This is part of their response:  ------------------------------------------------------------------------------------------

  • FotoMagico to FCP

    Hi everybody, Please can any FotoMagico user tell me what export presets they use in FotoMagico for use in FCP. I currently have FotoMagico Express edition and use the export to DVD preset. However, when importing to FCP the quality is really poor. I

  • Trouble burning a DVD

    Hi I'm having trouble burning a DVD. When I click burn, it all goes well until it's finished when it says that the HVDVD_TS folder was not included in the final disc. If anybody can help I would greatly appreciate it. Thanks.