Is there a RH standard for formatting code samples?

In the RH default style sheet, I do not see a pre HTML tag or other tag that will display code samples in a monospaced font.
I created custom styles for a single line code sample and another style for multiline samples.
We want our code samples to be shaded. If I shade multiple lines, each line being separated with a paragraph, there is a small amount of
white space between each line. We do not like this either.
I then created a custom table style with a single shaded cell. I add my multiline sample code, then I apply the custom paragraph style to get
the font and spacing between lines that I want.
Is there a different best practice for this, so that the code sample would be rendered correctly if viewed from other devices that read the HTML and
may look for the pre HTML tag?
I am using RoboHelp 9 and I provide the output as Eclipse help. Our help files are integrated into Eclipse help in the Eclipse IDE.
Thank you.
Cynthia

Hi Cynthia
As much as it pains me to say it, this is one case where using a Form element might be your best bet. I say this because often code samples are used or presented with the intent of copying and pasting into something like Windows Notepad. And if you used the TextArea form element, you can place the code there and make it pretty easy for folks to copy it for use elsewhere.
I stand to be corrected on this because I am not a "power CSS" person. (meaning I am aware there are complete two and three day classes one might attend on all the nuances of CSS) But RoboHelp won't really do anything to help you a great deal in formatting things. But it might be possible, somehow, to configure CSS to accomplish your goal of making the code look as you want.
Cheers... Rick

Similar Messages

  • Is there a available function for T-CODE: CC07

    Hello:
         Is there a available function for T-CODE: CC07 . or a function for  program RCS00160??
    thanks a lot.

    Hi
    I didnt get your question. may i knw whether u need a function module or ur question is different?if you need a function module then the followinf fms are available
    CALL FUNCTION 'CSCO_BOM_DISPLAY'
    CALL FUNCTION 'EQUIPMENT_CHECK'
    CALL FUNCTION 'CUKD_GET_RELATIONS_FOR_OBJECT'
    CALL FUNCTION 'CUKD_GET_KNOWLEDGE'
    CALL FUNCTION 'FUNC_LOCATION_READ'
    CALL FUNCTION 'CLMA_CLASS_EXIST'  and 
    many more....
    Regards,
    Samanth

  • Is there any plug-ins for static code analysis in Jdeveloper

    Hi,
    Is there any PMD, check style and static code analysis plug-ins available for JDeveloper? Those are available for Eclipse. How to achieve that in the JDeveloper?
    Regards,
    Raghu.

    This should help-
    PMD plugin for JDeveloper 11.1.2.0
    http://develishdevelopment.wordpress.com/2012/03/12/have-released-pmd-jdeveloper-extension-4-3/
    Always mention you Jdev version. Here I just assumed yours :P

  • Are there any directions on posting/formating code on forum?

    Someone once said that I should post code with special tokens so it can easily be checked and compiled.
    Are there special ways to post code on forum? Can't find any page about using special tokens.
    This was the note below?
    And it's not even possible to recompile your program to find out, because you didn't post it
    correctly (read the page about using special tokens to format your message).
    Thanks

    When you post, look above the subject box, you will see a link called special tokens.
    http://forum.java.sun.com/faq.jsp#messageformat

  • Hello is there any better view for this code?

    thanks
    about_btn.addEventListener(MouseEvent.MOUSE_DOWN, aboutclick);
    function aboutclick(event:MouseEvent) {
    gotoAndPlay("page2");
    gallery_btn.addEventListener(MouseEvent.MOUSE_DOWN, gallery_click);
    function gallery_click(event:MouseEvent) {
    gotoAndPlay("page3");
    video_btn.addEventListener(MouseEvent.MOUSE_DOWN, video_click);
    function video_click(event:MouseEvent) {
    gotoAndPlay("page4");
    or_mc.addEventListener(MouseEvent.MOUSE_DOWN,drag);
    or_mc.addEventListener(MouseEvent.MOUSE_UP,drop);
    function drag(event:MouseEvent):void{
        or_mc.startDrag();
    function drop(event:MouseEvent):void{
        or_mc.stopDrag();
    all.pah.addEventListener(MouseEvent.MOUSE_DOWN,drag1);
    all.pah.addEventListener(MouseEvent.MOUSE_UP,drop1);
    function drag1(event:MouseEvent):void{
        all.pah.startDrag();
    function drop1(event:MouseEvent):void{
        all.pah.stopDrag();

    What do you mean?  Except for what appears to be an excess curly brace at the end, and an inconsistent use of ":void" in the function declarations and indentations too, it looks okay functionally.

  • We r using os 10.6.8 and 7.0.3 fcp,in that rendering with unlimited option out of memory warning is displayed Final Cut Pro 7, Mac OS X (10.6.8), 10gb RAM.no stills are there.there are hd standard

    we r using os 10.6.8 and 7.0.3 fcp,in that rendering with unlimited option out of memory warning is displayed, 10gb RAM.no stills are there.there are hd standard videos

    What format are your sources and what are your sequence settings?  I'd guess that you're working with h.264 material which is not fcp friendly.  If so, use compressor to conver to prores422

  • 2.1 RC1 breaks svn headlines during formatting code

    Hi,
    after i'm using CTRL+F7 for formatting code, alls svn headlines are broken.
    For example,
    -- $HeadURL: http://icisvnt.server.XXX.local/repos/i3s/trunk/i3skm/Model/src/main/sql/i3skm/10a_i3skm_mig_paket_revisionen_sync.pks$
    will be formatted to
    -- $HeadURL: http://icisvnt.server.XXX.local/repos/i3s/trunk/i3skm/
    -- Model/src/main/sql/i3skm/10a_i3skm_mig_paket_revisionen_sync.pks$
    The expected behavior (like in in jdev 11.1.1.2) would be to leave all svn headlines untouched.
    Thanks in advance

    Hi Skunde,
    The formatter does not understand svn in a comment - it just assumes the comment can be cut to the set number of characters as requested.
    (It does not do this by default, as max line width is 999 by default)
    Two workarounds:
    1/tools->preferences->databases->sqlformatter->oracle formatting->edit->line breaks->Max Line Width
    set this to 999 (side effect - your code may go past the right of the screen i.e. over 80 characters)
    2/Note that you can now format a selection not just the whole code so you could leave out the svn banner when formatting the rest.
    Also as you have done you could remove the line feed manually.
    --Turloch
    Edited by: Turloch O'Tierney on Dec 7, 2009 3:56 AM

  • Enjoy Screen for T-Code F-05

    Hi All,
    Please let me know is there any Enjoy Screen for T-Code F-05.
    Thanx
    Andy

    Hi Andy,
    For F-05, there is not Enjoy transaction. Because this is the rarely used t.code.Used for only adjustment entries.

  • What's the Oracle Standard for generating Output & logfile for Conc Prog?

    Is there any Oracle Standard for generating output and log files for standard concurrent programs and reports.
    for example: if Error, only Log no output
    if Warning, Log & output
    Complete Normal, Log & output
    Any help is appreciated...
    Thanks,
    Subhadeep

    Is there any Oracle Standard for generating output and log files for standard concurrent programs and reports.
    for example: if Error, only Log no output
    if Warning, Log & output
    Complete Normal, Log & output
    Any help is appreciated...APPS.FND_CONCURRENT -- procedure get_dev_phase_status
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_details?c_name=FND_CONCURRENT&c_owner=APPS&c_type=PACKAGE%20BODY&c_detail_type=source
    Thanks,
    Hussein

  • Code samples for all

    I just wanted to share with the community there is a huge code base at
    koders.com
    Over 2 million lines of code....
    that has tonz of examples from almost every language. Check it out. It's pretty neat stuff if you have time to search through the code.

    Choosing between CMP or BMP depends on the business requirements.
    If your application has a lesser complex mapping, development time is less or there is no benefit is achieving a greater control over database transactions, CMP would be preferred. However, if you wish to have a greater degree of control over the database transactions and/or the database has complex mappings, it is better to opt for BMP.
    As for the code samples, you coild find hundreds of them if you do a Google search.
    Regards
    xH4x0r

  • Sql statement substituion - any special rules for formatting the query?

    Hey,
    I was wondering - are there any special rules for formatting the query that is to be substituted?
    I am asking, as somehow I am unable to make the DSP substitute my query. I took the basesql from the server console (to make sure that I have the correct version), configured a query substitution, and well, nothing happens.
    I've tried to substitute it with a modified version of the original query (where NVL(,0) is changed to NVL(,-9999)), then also with select * from dual (which I hope would generate some error), but DSP is ignoring everything...
    The query is rather big (400 lines), so maybe I need to format it somehow? I've noticed that in the docs (http://edocs.bea.com/aldsp/docs25/admin/server.html#wp1049919) that the query used in the example has all leading spaces removed. I've tried that, but DSP is still not doing any substitution...
    Any suggestions welcomed...
    Thanks,
    Leszek

    Michael,
    I am doing everything as in edocs, retrieving from logs the basesql (so with place holders). I've removed all new lines (so the query is now in a single line) and all excessive blanks (so all double/more blanks replaced with a single blank). Still the DSP is like ignoring the substitution. I've tried to do it even with a simple query, like:
    SELECT t4."PRODUCT_ID" AS c1, t4."PRODUCT_NAME" AS c2 FROM {DB}.{SELECTION} t1 JOIN {DB}.{CUSTOMER_FACT} t2 ON (t1."VAL" = t2."CUSTOMER_ID") JOIN {DB}.{CUSTOMER} t3 ON (t3."CUSTOMER_ID" = t2."CUSTOMER_ID") JOIN {DB}.{PRODUCT} t4 ON (t4."PRODUCT_ID" = t3."PRODUCT_ID") WHERE ((? = t1."SESSN_ID") AND (t1."NAME" = 'CUSTOMER_ID') AND (t3."DELET_DATE" IS NULL) AND (t3."PRODUCT_TYPE" = 11))
    am I missing something here? do I need to remove/add something , to make it work?
    I've tried removing blanks around = signs (which from the DSP pov results in a different query), sitll with no results.
    Edited by xnts at 06/24/2008 7:37 AM

  • Audio standards for importing music.

    Is it just me or is there complete apathy for the way that audio sounds now? It drives me up the wall the way that some listeners can bounce .mp4 files 10 times and not hear the loss in audio quality. I understand that the "standard" for my generation has turned in to the iPod earbud, but isn't there a better way to import? Maybe the solution lies in the mixing of music. No one listens to the songs they purchase on iTunes on high-end stereos anymore. Should we be mixing for earbuds?
    Powerbook G4 15''   Mac OS X (10.4.8)  

    There's no "standard" for mixing and mastering audio so...
    There are standards for file types but the "quality" of the converted music is left up to whoever makes the codec.
    How would this standard for importing music work exactly?
    I understand that the "standard" for my generation has turned in to the iPod earbud, but isn't there a better way to import?
    Sure there is. Crank up the bit rate or go with lossless.
    RIP a CD a few different ways and compare the RIP'd songs.
    If size does not matter, use Lossless, AIFF or WAV.
    About the only reason for MP3, AAC and other lossy codecs is to make the file size smaller.

  • Delivery status notifications Code Samples

    Hi,
    I'm looking for some code samples on how to use javamail Delivery status notifications.
    Please, are there any code samples?
    ngocthan

    I accept that the recipient must actually confirm receipt but until very recently I could request a delivery status report and would get confirmation that an email had been delivered to the intended server or not as the case may be. Suddenly these confirmations have stopped and I think it unlikely that all the receiving servers have simultaneously been programmed not to send delivery status confirmation. Confirmation of delivery to the receiving server is important, sometimes vital, in my work to demonstrate that non-receipt is a problem at the receiving end and that a document or email was actually sent.

  • EP Code samples source location

    Hi,
    I am new a new member in the EP fraternity. I found a lot of examples in the portal services PDF document I downloaded from sdn. But I am unable to find the source of the examples mentioned in the document. Like for example, JCoClientPool.java etc..And also I am unable to locate the PDV files like portaldataviewer.zar, PortalDataViewer.par and PortalDVSamples.par.
    Helping me finding these files is greatly appreciated.
    Thanks,
    -Chakri

    Hi Chakri B,
    Welcome to SDN. If u r looking for some code samples u can get it from PDK. Its a seperate installtion. U can download the setup for PDK from SDN itself. Try this link for PDK
    https://www.sdn.sap.com/sdn/downloaditem.sdn?res=/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/6faddbaa-0501-0010-d5b3-83ec16f6b8fc
    Download it and add PDK to the portal.
    It has details abt the various portal developments.
    Also u can find documentaion about Portal componets from www.help.sap.com.
    If ur looking for some code then u can also find that from SDN code samples. Search in code samples.
    Many of the par files are provided with portal itself. You can download the same from ur server as mentioned in the pervious reply.
    Hope this Helps
    gEorgE

  • Oracle shutdown notification (OracleNotification) code sample

    Hi,
    I'm looking for a code sample demonstrating the use of OracleNotification for catching Oracle shutdown events.
    Thanks
    Philippe

    Hi,
    I'm looking for a code sample demonstrating the use of OracleNotification for catching Oracle shutdown events.
    Thanks
    Philippe

Maybe you are looking for