Display colored text

Hi,
this might sound too easy, but I would like to ask this anyway.
What's the preferred way to display colored text on a BSP page?
Regards,
Daniel

Hi Daniel,
If its a plain text in html....then...its the normal html tag...
<font>
eg.
<font face="Arial" color="GREEN">Colored text</font>
And for textView, try using this...
First set the attribute <b>encode</b> to <b>FALSE</b>.
Then use HTML tag as text...
eg :
<htmlb:textView id = "TxV1"
              encode = "FALSE"
               text = "<font face="Verdana" color="GREEN">Colored text</font>" />
I think this works...!
<b><i>Do reward each useful answer..!</i></b>
Thanks,
Tatvagna.

Similar Messages

  • Displaying colored text

    Hi all,i want to display a text item in forms with color.If the value in this text item is negative,i want to display it in one color and if it's positive another color.Can someone suggest me how to achieve this.
    Any help is appreciated,
    Thanks in advance!!

    1. Create two visual attributes (VA_RED foreground color=RED , VA_GREEN foreground color=GREEN )
    2. Add following code in POST-QUERY and WHEN-VALIDATE-ITEM
    IF :EMP.COMM < 0 THEN
    Set_Item_Instance_Property('EMP.COMM' , CURRENT_RECORD, VISUAL_ATTRIBUTE,'VA_RED');
    ELSE
      Set_Item_Instance_Property('EMP.COMM' , CURRENT_RECORD, VISUAL_ATTRIBUTE,'VA_GREEN');     
    END IF; Best Regards,
    Lokanath Giri

  • [SOLVED] Some colored text in urxvt displaying oddly

    Some colored text does not display correctly in the terminal - but not all. Here's a screenshot:
    http://i.imgur.com/xrzCR16l.png
    As you can see, the directory names displayed in blue and the executable files displayed in green (not sure why .vimrc is executable..) are all funky looking. However, my username and the regular file names are all displaying correctly. Also all the colored text in VIm in the terminal looks fine as well:
    I've read through the Font Config Wiki - Applications Without Fontconfig Support but none of the configs suggested:
    Xft.autohint: 0
    Xft.lcdfilter: lcddefault
    Xft.hintstyle: hintfull
    Xft.hinting: 1
    Xft.antialias: 1
    Xft.rgba: rgb
    in my .Xresources file change this behavior. Here is my full .Xresources file without the above settings, its not very long:
    ! special
    *.foreground: #e9ebee
    !#93a1a1
    *.background: #002b36
    *.cursorColor: #93a1a1
    ! black
    *.color0: #002b36
    *.color8: #657b83
    ! red
    *.color1: #dc322f
    *.color9: #dc322f
    ! green
    *.color2: #859900
    *.color10: #859900
    ! yellow
    *.color3: #b58900
    *.color11: #b58900
    ! blue
    *.color4: #268bd2
    *.color12: #268bd2
    ! magenta
    *.color5: #6c71c4
    *.color13: #6c71c4
    ! cyan
    *.color6: #2aa198
    *.color14: #2aa198
    ! white
    *.color7: #93a1a1
    *.color15: #fdf6e3
    URxvt*.transparent: true
    URxvt.shading: 100
    !URxvt.font: xft:DejaVu Sans Mono:pixelsize==14:antialias=false
    urxvt*font: xft:DejaVu Sans Mono:style=Book:antialias=false:size=9, \
    xft:WenQuanYi Bitmap Song:size=8, \
    xft:FreeSerif:style=Regular, \
    xft:unifont:style=Medium:antialias=false
    urxvt.scrollBar: false
    I would have thought that it has something to do with the colors being defined incorrectly, but the ".vimrc" file is using the same color as my username, and my username is behaving correctly. I'm at a loss and attempting to google "Font Problems in urxvt" gets topics where the the font is incorrect throughout the whole terminal, not just in particular places. Anyone know how to correct this?
    -- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
    Last edited by woodape (2015-04-16 18:36:08)

    Try defining your bold font explicitly:
    URxvt.boldFont: blah

  • Display color problem - asking for a color solution

    So I have this serious problem with my Macbook Pro.
    Some months ago I suddenly saw green colors in black area's and pink line colors in white areas.
    Text on white background was extremely frustrating to read, since it was surrounded with small pink lines and flickering.
    Note this was only near max white and max black areas of the screen.
    I found out that it was due to a hardware failure, since slightly bending the laptop (!!) would remove the problem
    Attaching an external monitor doesn't show the defect, and booting in Windows 7 (bootcamp) still shows the same screen problem.
    Searching the web, it appears that it was a NVidia related heat problem, known to my model, but the offer to get it fixed for free by apple (since it was a known issue) had already run out december 2012 (!!). I think my laptop is about 3-4 years old, and the battery pretty much died on me the first year, probably due to heavy usage and the graphic card getting too hot. There are small sweat/corosion marks of where my hand are placed when typing, on the aluminium, due to how hot my laptop got. It sometimes got so hot I couldn't touch the aluminium on the top left corner near the 1-2-Q-W keys.
    Fixing my Macbook is too expensive. Just getting someone to look at it to diagnose it (without repairing it), costs a lot in my country, and we have no official apple store, only authorized resellers. I know it's probably the motherboard, because I tried to unscrew the backlid and gently touch certain area's on the motherboard with a pen, while the computer was still running, to find out where the short circuit was. I only started this kind of trying to "self service" it, because I knew how expensive replacing the motherboard would be (if that was even the issue?).
    I have multiple times tried to place something up against the sensitive area's on the motherboard, and then screw back the backlid, to put some pressure on it, which at first worked brilliantly and removed the color issue for some weeks, before it started reappearing. I think the heat from the laptop slowly makes the motherboard adapt, and the problem returns. Extremely frustrating indeed.
    I hope I can one day afford a Macbook Air, but until then, I don't want to throw more money after my poor macbook (which I pronbably can't sell anyway, like previous mac's I've owned, the day get a new. It's too worn out + battery got only 5min on a full charge).
    I think it's wisest to rather save the money for a Macbook Air, and try to survive until then. Therefor I was hoping someone could help me with a temporary solution.
    In Windows 7, using the Nvidia Control Panel to apply color management, I was able to adjust the individual color output values, and thereby remove the the screen issue! Maybe the colors are not as good anymore, but it sure beats not getting a headache after 10minutes trying to read an article.
    I tried the same thing on the mac, using Preferences>Displays>Color>Calibrate, but this guide is much harder to use to get a decent result (since only the last 2 options really makes a difference, but changes the colors completely, which I can't change by going back to the first color settings since then it just undos the last step I just did. I'm currently writing this with a very blue pale screen.
    I also tried to use ColorSync Utility, expecting to enter values manually, but contrary to the articles I read about using ColorSync, I cannot edit the values in the color profile I created (I can only change the ASCII text input fields). Trying to save the profile gives me the error 'The Document "screenbug.icc" could not be saved.'
    I tried to look for alternative color calibration software, but most of them required hardware, or expensive full version to unlock the settings I needed (like SuperCal).
    I hope some tech savy users out there that can help me, or at least make my life with my macbook less of a pain.
    All help is much appreciated!!
    PS: I've been a loyal Mac user since always. Few things I've learned is:
    1) Don't buy the first version of new hardware. Wait about a month for reviews, to check for issues. I had a problem with an expensive MacPro that had to be replaced, but luckily for free since it was Apple's mistake. Sometimes Apple products also get minor internal changes/fixes without announcements, to help solve reported issues from early buyers.
    3) Take care of you Mac, especially so because you can often sell your used Mac's for quite a value the day you want to upgrade. I've sold about 3 Mac's in my lifetime, for quite a gain, though I don't expect this macbook to do as well, if at all. But it's normally something to be cautious about.
    3) Don't order custom configurations from the Apple Store, if you can live without it (+ it's usually crazy overprices). I payed extra to get the NVidia GeForce 9600M, and was happy with it for the first couple of years, but is now causing me all the problems I have today + made my Macbook worthless.
    Stick with what the default configuration if possible, as other configurations might not have been tested carefully.

    Who exactly is your comment "I am asking you to fix this problem soon" directed at?
    Remember that you are posting on a user to user forum so nobody can really help you.  If you want to give feedback to Apple, then contact them directly at http://www.apple.com/feedback.
    Also, if you have an iPhone 3G and iOS 4.2.1 is the latest software that you can install on your phone, then there is absolutely nothing that anyone can do to fix the problem if you want to install Skype that requires iOS 4.3 - what do you think anyone can magically do?
    iPhone 3G is a very old phone now and if you want to install Skype on your phone, then you need to go out and buy a new iPhone - either a 4s or a 5.  Nothing more to it.  Buy a new phone.

  • Is there any possible to display the text in big font in screen painter

    HI all!
    i want to display the text in the large size in the text field in the screen painter in the odule pool programing.Is there any possible.What i have to do in the screen painter to display the text in the large size.Also is there any possible to put the color for the text.Give me reply

    HI
    CALL METHOD o_dyndoc_id->initialize_document
          EXPORTING
            background_color = cl_dd_area=>col_tree_level1.
        DATA : dl_text(255) TYPE c.  "Text
        CALL METHOD o_dyndoc_id->add_text
          EXPORTING
            text         = 'Flight Details'
            sap_style    = cl_dd_area=>heading
            sap_fontsize = cl_dd_area=>large
            sap_color    = cl_dd_area=>list_heading_int.
    * Display document
        CALL METHOD o_dyndoc_id->display_document
          EXPORTING
            reuse_control      = 'X'
            parent             = cont
          EXCEPTIONS
            html_display_error = 1.
        IF sy-subrc NE 0.
        ENDIF.
    by using these methods you can achieve i hope..
    have a good day.
    regards
    sarves

  • How can I write to text file colorful texts

    I save system events in a text file,for example when system give warning message i want to write it red

    As others have mentioned, if you want to view text in different colors with an viewer/editor tool outside of LabVIEW, you must provide the necessary formatting for that tool.
    If it works for your application to view the file using LabVIEW you can do this:
    1) Place a unique key in each line that identifies an error.
    2) Display the text in a Listbox and color each line based on that unique key.
    You can fairly easily provide a stand alone viewer if needed.
    This technique can also be expanded to provide multiple colors.
    steve
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.

  • I want  to display a text when button pressed

    Hi guys
    I want to display a text when a button is pressed , but the compiler says cannot resolve variable text ,can you please help me
    here is my program
    import  java.awt.Color .*;   import java.awt .*; import java.awt.event.*; import java.awt.event.*;   import javax.swing.*; import javax.swing.JTable.*;   public class sannaa extends JFrame implements  ActionListener {[code] public sannaa( )  {
    super("����� ������" ); setLayout(new FlowLayout()); TextField text = new TextField(20); JButton ok=new JButton( "return"   ); add(text); ok.addActionListener(this);  
    Container   contentPane  =  getContentPane(    ); 
    JLabel hellolabel=new JLabel("google"); hellolabel.setForeground(Color.black); hellolabel.setBackground(Color.blue);   String[ ] columnNames =
    {"First Name",   "Last Name", "Sport",
                             "# of Years",
                             "Vegetarian"};
                            Object [    ][     ] data =
    {"Mary", "Campione", "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml", "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath", "Knitting", new Integer(2), new Boolean (false)},
    {"Sharon", "Zakhour", "Speed reading", new Integer(20), new Boolean(true)},
    {"Philip", "Milne", "Pool", new Integer(10), new Boolean(false)} };
    JTable table = new JTable(data, columnNames); JButton enter=new JButton( "search"   ); ok.setBackground(Color.pink); ok.setForeground(Color.white); JFrame frame=new JFrame("EL  "); enter.setMaximumSize(new Dimension(900,
                                           100)); enter.setForeground(Color.blue); contentPane.setBackground( Color.white); for(int i=0;i<10;i++) {[code]JButton rami=new JButton( ""+ "" +i );
    contentPane.add(rami);
    rami.setBackground(Color.blue); }
    contentPane.add(ok);
    JPanel panel=new JPanel(new BorderLayout(500,500) ); contentPane.setLayout(new FlowLayout( )); contentPane.add(panel); panel.add(enter,  BorderLayout.PAGE_START); panel.add(table, BorderLayout.PAGE_START); panel.add(hellolabel,  BorderLayout.PAGE_START); panel.setBackground( Color.white ); panel.setLayout(new BorderLayout()); panel.add(table.getTableHeader(),BorderLayout.PAGE_START )  panel.add(table, BorderLayout.CENTER); panel.add(hellolabel,BorderLayout.PAGE_END);   setVisible(true); }
    public void actionPerformed(ActionEvent   e  ) {  [code] text.setText("Button Clicked ");
    public static void main (String [] args) {[code] sannaa van=new sannaa( );
    } }  

    Thanks
    I have changed my program to the following and its compiled truely, but when I press thte button in the application no text appeared?
    help me please
    import  java.awt.Color .*;   import java.awt .*; import java.awt.event.*; import java.awt.event.*;   import javax.swing.*; import javax.swing.JTable.*;    public class sannaa extends JFrame implements  ActionListener { 
    public sannaa(   ) {
    super("����� ������" ); JButton ok=new JButton( "return"   );
    ok.addActionListener(this);  
    Container   contentPane  =  getContentPane(
    JLabel hellolabel=new JLabel("google");
    hellolabel.setForeground(Color.black); hellolabel.setBackground(Color.blue);
        String[ ] columnNames =
    {"First Name",   "Last Name", "Sport",
                             "# of Years",
      "Vegetarian"};
                            Object [    ][     ] data =
    {"Mary", "Campione", "Snowboarding", new Integer(5),
    new Boolean(false)},
    {"Alison", "Huml", "Rowing", new Integer(3), new
    Boolean(true)},
    {"Kathy", "Walrath", "Knitting", new Integer(2),
    new Boolean (false)},
    "Sharon", "Zakhour", "Speed reading", new
    Integer(20), new Boolean(true)},
    {"Philip", "Milne", "Pool", new Integer(10),
    new Boolean(false)} };
    JTable table = new JTable(data,
      columnNames); JButton enter=new JButton( "search"
         ); ok.setBackground(Color.pink); ok.setForeground(Color.white); JFrame frame=new JFrame("EL  "); enter.setMaximumSize(new Dimension(900,
      100));
    enter.setForeground(Color.blue); contentPane.setBackground( Color.white);
    for(int i=0;i<10;i++) {  [code]JButton rami=new JButton( ""+ "" +i );
    contentPane.add(rami);
    rami.setBackground(Color.blue); }
    contentPane.add(ok);
    JPanel panel=new JPanel(new
      BorderLayout(500,500) ); contentPane.setLayout(new FlowLayout(
      )); contentPane.add(panel); panel.add(enter,  BorderLayout.PAGE_START);
      panel.add(table,
      BorderLayout.PAGE_START); panel.add(hellolabel,
       BorderLayout.PAGE_START); panel.setBackground( Color.white ); panel.setLayout(new BorderLayout());   panel.add(table.getTableHeader(),BorderLayout.PAGE_START ) ;
       panel.add(table, BorderLayout.CENTER);
    panel.add(hellolabel,BorderLayout.PAGE_END);
       setVisible(true); }
    public void actionPerformed(ActionEvent   e  )
      {  [code] TextField text=new TextField ("") ;
    text.setText("Button Clicked     ");     }
    public static void main (String [] args)
    sannaa van=new sannaa( ); } }  

  • Bizarre colored text in 10.4.6

    Last night I updated my 17-inch PowerBook (1GHz, 1GB) to 10.4.6 using Software Update (which has always worked fine for me in the past). Since doing so, when it renders black text, odd bits of color show up in and around the characters. It's not a problem with explicitly-colored text. I've searched the forum, and find no reference to this one. I see a lot of advice to install from the combo updater rather than Software Update, so I tried that, but the symptoms remain. No "font smoothing" setting in Appearance makes any difference, and it persists if I change screen resolutions. Some other bits of text are being rendered oddly as well, but it's hard to be more specific than that.
    To see what I'm talking about, look at http://surly.org/finder.png and http://surly.org/fontbook.png -- the fact that I'm able to take screenshots shows that it's not something in my display hardware.
    Suggestions would be appreciated.
    17-inch PowerBook G4   Mac OS X (10.4.6)  

    Problem occurs in all accounts (even a freshly-created one) and all applications (web browsers look particularly ugly).
    As I said, none of the font smoothing settings change it a bit. It could still be related, though, because in general I use larger fonts than 12-point, which is the highest setting in "turn off text smoothing".
    I have not tried repairing permissions, because I can't envision what difference it would make, and as a systems professional I try to stay away from the "just try this, it fixes things sometimes" sorts of solutions, but I suppose I could give it a whirl.

  • Display a text in multiple lines inside a button

    I have a toggle button bar containing many buttons as follows:
    <mx:ToggleButtonBar id="menu"               
         itemClick="clickButton(event)"
         styleName="myToggleButtonBarStyle"/>
    The styles apllied are :
    <mx:Style>
              .myToggleButtonBarStyle {
                   button-style-name: "buttons";  
                   vertical-center:0;
         .buttons {
              text-selected-color: #14476c;
              text-roll-over-color: #14476c;
              up-skin: Embed(source="/phase_grey.png");
              over-skin: Embed(source="/phase_blue.png");
              down-skin: Embed(source="/phase_blue.png");
              selected-up-skin: Embed(source="/phase_blue.png");
              selected-over-skin: Embed(source="/phase_blue.png");
              selected-down-skin: Embed(source="/phase_blue.png");
              padding-left:45;
              padding-right:30;
         </mx:Style>
    My problem is that when I have a long text, it is displayed in one ligne so the button get larger. I do not want my button to get larger it has to keep the initila size (my button is an image). I want indeed to display the text in multiple lines rather than only one.
    How to do this?
    Thank's in advance

    These links on multi-line buttons in Flex should answer your question:
    http://blogs.adobe.com/aharui/2007/04/multiline_buttons.html
    http://www.igorcosta.org/?p=73
    http://www.nabble.com/Is-it-possible-to-make-multiline-Button--td7508988.html
    http://electro-bunny.blogspot.com/2009/02/creating-multiline-button-in-flex.html
    If this post answers your question or helps, please mark it as such.

  • Apple Studio 17" Display colors not right after thunderstorm

    Noticed this afternoon, after a thunderstorm, that my 17" Apple Studio Display was not displaying colors correctly. All windows are reversed - white background is now black and text is white. Also photos look like 35mm negatives. My blue Apple standard background is now orange. I checked the Display section in the System Preferences and did the ColorSync calibration and troubleshooting (verify and repair). None of this has any affect. Any suggestions?

    Try Control-Command-Option-8
    or select "Black on White" in the "Seeing" tab of "Universal Access" system preference.

  • Mystery: XP display color scheme : silver can result in black on black unreadable controls

    My setup is a Dell PC running XP Professional.  Display Dell 1901 (also does this on Default Display).  Intel 82856G Integrated Graphics driver. LabVIEW 7.1.
    The color settings for the 5 controls on the attached .vi are foreground: 179 179 179 and background 255 255 255 yet some appear as black on black in the XP display color scheme : silver and some appear as black on white.  By setting the XP color scheme to default, you can use the color sample and color fill tools to change whether a control will be black on black or black on white in the color scheme : silver view.  It appears like there is some "magic property" that is not foreground or background color that is being copied with the color sample and fill tools.
    Any ideas?
    Attachments:
    silver_contrsch.JPG ‏76 KB
    control_scheme_silver.vi ‏15 KB
    default_contrsch.JPG ‏79 KB

    Hello,
    I was a bit puzzled by this myself until someone suggested I use the "color sucker" tool to find out what the current colors of the enums were.
    The color sucker tool (aka eye-dropper) can be used by selecting the paintbrush tool and holding CTRL on the keyboard.  Now left-click the item you want to check the color of.  Right-click any object to bring up the color picker, and look at the colors in the history.  The one furthest to the right (that isn't "empty") is the color you just picked up with the color sucker.
    You'll notice that on the problematic enums, the background color is "Hilight Text".  This is a system color that will change depending on the theme you use.  On the silver theme, it is black or near-black.  On the others it is white or near-white.
    When picking colors, you might want to be careful to watch the text next to the curently selected color box.  If it has RGB values, this is safe (theme-independent).  It's also safe to use named colors in the "User" list, such as "Control Background".  But if the named color is a system color, it can change depending on your theme.
    Disclaimer: I don't know if color sucker or eye dropper is the "official" term for this tool. 
    Message Edited by Jeff B on 05-30-2006 10:54 AM

  • Custom field html displays as text

    I am converting a custom field from a SharePoint 2007 version to SharePoint 2013. The field works correctly in SP2007. In SP2013 it has the correct information but displays as text instead of html. I have set the "disable-output-escaping" in the
    xsl to "yes" but it does not help. Here the xml and xsl data for the field.
    <?xml version="1.0" encoding="utf-8" ?>
    <FieldTypes>
      <FieldType>
        <Field Name="TypeName">PriorityIndicator2</Field>
        <Field Name="ParentType">Text</Field>
        <Field Name="TypeDisplayName">Priority Indicator</Field>
        <Field Name="TypeShortDescription">Priority Indicator</Field>
        <Field Name="UserCreatable">TRUE</Field>
        <Field Name="Sortable">TRUE</Field>
        <Field Name="AllowBaseTypeRendering">TRUE</Field>
        <Field Name="Filterable">TRUE</Field>
        <Field Name="FieldTypeClass">Company.WebParts.PriorityIndicator2, $SharePoint.Project.AssemblyFullName$</Field>
        <Field Name="FieldEditorUserControl">/_controltemplates/15/PriorityIndicator2FieldEditor.ascx</Field>
        <Field Name="CAMLRendering">TRUE</Field> 
        <RenderPattern Name="DisplayPattern">
     <Column HTMLEncode="FALSE" />
        </RenderPattern>   
      </FieldType>
    </FieldTypes>
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema"
                    xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
                    version="1.0"
                    exclude-result-prefixes="xsl msxsl ddwrt"
                    xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
                    xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
                    xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
                    xmlns:SharePoint="Microsoft.SharePoint.WebControls"
                    xmlns:ddwrt2="urn:frontpage:internal">
      <xsl:template match="FieldRef[@Name = 'PriorityIndicator2]" mode="Text_body">
        <xsl:param name="thisNode" select="." />
        <span style="background-color:lightgreen;font-weight:bold">
          <xsl:value-of select="$thisNode/@*[name()=current()/@Name]" disable-output-escaping="yes" />
        </span>
      </xsl:template >
    </xsl:stylesheet>
    Any help would be greatly appreciated.
    Luis R. Lebron

    Hi,
    According to your post, my understanding is that the custom field not render html well.
    As you have known, we can use the “disable-output-escaping” to render the html, however, it not works in your environment.
    As a workaround, we can use JQuery to render the html, I have made a simple code snippets to achieve this scenario, you can refer to it.
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function(){
    var theTDs = $("td[id='SPFieldCustom']");
    //console.log(theTDs.html());
    TDContent = theTDs.text();
    //console.log(TDContent);
    theTDs.html(TDContent);
    </script>
    Note: You should change the id to fit your environment.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Echo colored text in a shell script?

    As part of a shell script I'm working on, I want to be able to print colored (preferably red) text to the Terminal window, to provide warnings to the user.
    How can I code in echoing colored text?
    (I did some googling and couldn't find anything that seemed to apply to what I want to do.)
    Any help would be appreciated!
    Thanks in advance!

    The following is a shell script that displays the terminal colors and the escape sequences used to generate them:
    #!/bin/sh
    # colors.esc - display the terminal colors and the escape sequences that
    # generate them. "Blink" is _NOT_ shown, as it is a very
    # annoying effect, and should be avoided at all costs in normal
    # daily uses.
    # Usage: colors.esc [12 character or less display string]
    # Bob Harris
    E=$(printf ' ') # escape <E>
    R="${E}[0m" # reset <E>[0m
    typeset dsp_str=""
    typeset dsp_txt
    typeset fg_text
    typeset bg_text
    if [[ $# != 0 ]]; then
    dsp_str=$(printf "%12.12s" "$*")
    fi
    color=(Black Red Green Yellow Blue Magenta Cyan White)
    for bg in "" 0 1 2 3 4 5 6 7 # for each background color
    do
    b=$bg && [[ X$b != X ]] && b="4$b;" # deal with no background color ""
    echo " ------------ ----bold---- -underline-- --reverse---"
    for fg in 0 1 2 3 4 5 6 7 # for each foreground color
    do
    f="3$fg" # setup foreground color
    line=""
    for a in "" 1 4 7 # for each attribute
    do
    [[ X$a != X ]] && a=";$a" # deal with no attribute ""
    if [[ -z "$dsp_str" ]]; then
    dsp_txt=$(printf "%12s" "<E>[${b}${f}${a}m") # build esc text
    else
    dsp_txt="$dsp_str" # use supplied text
    fi
    line="${line}${E}[${b}${f}${a}m${dsp_txt}${R} " # build entry
    done
    fg_text=$(printf "%-7s" ${color[$fg]}) # translate foreground color
    bg_text=$(printf "%-9s" "Bg${color[$bg]}") # translate background color
    [[ X$b = X ]] && bg_text=$(printf "%-9s" " ") # no bckgnd color
    line="$bg_text $fg_text $line" # build final display line
    echo "${line% }" # display the colorized line
    done
    done
    echo " ------------ ----bold---- -underline-- --reverse---"
    bg_text=$(printf "%-9s" " ")
    fg_text=$(printf "%-7s" "Reset")
    dsp_txt=$(printf "%12s" "<E>[0m")
    line="$bg_text $fg_text $dsp_txt" # build final display line
    echo "${line% }"

  • How to prevent display color option settings from disappearing after a restart of Firefox?

    I like to display specific text, background and link colors overriding pages' defaults; that info disappears almost after every Firefox restart. These settings are set in: Firefox>Options>Options>Content>Colors and having to reset them almost every time I start F is a pain.
    An ideal solution would be to allow a user to save their color picks as a separate "theme". I would then prefer to have 3 such saved themes that would be easy to switch at a push of a button:
    1. Light text on dark background (dark screen, less contrast) for a dark room;
    2. Lighter text on dark background (dark screen, more contrast) for a bright room;
    3. Firefox default.
    Finally, replacing a color palate with few colors with a color wheel from OS would be ideal and relatively simple to implement.
    This may or may not be related but preferred magnification of text on each individual page is also often lost (reset to default).

    See if the following article helps.
    * [[How to fix preferences that won't save]]
    Overriding web site colors may not be good idea because it also gets rid of background images. Some sites set background images for certain web page elements to display information that's crucial to using the site (like text for buttons).
    You can use the Stylish add-on to manage user styles that change the appearance of web pages in various ways. You can click the Stylish toolbar icon and enable or disable styles that are applied to the current page.
    # Install Stylish and restart Firefox when prompted.
    #* https://addons.mozilla.org/firefox/addon/stylish/
    # Click the ≡ Menu Button and choose Add-ons.
    # In the Add-ons Manager, click User Styles on the left.
    # Click the Write New Style button at the top. Paste the following in the text box, give the style a name, then click the Save button.
    <pre><nowiki>
    @-moz-document url-prefix("http://"), url-prefix("https://") {
    /* Dark background and light text. For more color names, see http://www.w3schools.com/HTML/html_colornames.asp */
    * { background-color: rgb(20,20,20) !important; color: whitesmoke !important; }
    a:link { color: royalblue !important; }
    a:visited { color: blue !important; }
    a:hover { color: lightblue !important; }
    a:active { color: red !important; }
    }</nowiki></pre>
    <pre><nowiki>
    @-moz-document url-prefix("http://"), url-prefix("https://") {
    /* Light background and dark text. For more color names, see http://www.w3schools.com/HTML/html_colornames.asp */
    * { background-color: whitesmoke !important; color: rgb(20,20,20) !important; }
    a:link { color: royalblue !important; }
    a:visited { color: blue !important; }
    a:hover { color: dodgerblue !important; }
    a:active { color: red !important; }
    }</nowiki></pre>
    You can install the Rainbowpicker add-on to choose any color everywhere in the Firefox interface (like Options/Preferences - Content - Colors).
    * https://addons.mozilla.org/firefox/addon/rainbowpicker/

  • When i paste some copied color text or formatted cells from excel to my mail draft while composing a mail, it is being pasted as plain text. No back groud or text colors are copied to it. Please suggest a possible solution for this issue.

    Colors & Formatted Cells from Excel application can not be copied to my mail composer as it is. Only Plain text is copied.

    Wish I could be king. But you described the problem perfectly and I am still but a pawn. All I can say is that I trashed the mail preferences (com.apple.mail.plist) on my Mac Mini, and now my MacBook seems to work right.
    Sorry. :>) But that is the truth... The MacBook now has actually sometimes displayed pasted text in its actual, different, font and style as I paste it into a partially composed new mail message.
    In other (more rational) words, the problem seems to be tied to pasting only certain types of text. I have not been able yet to pinpoint what. Yes, frustrating indeed. The only work-around has been to re-train my fingers to command-option-shift V, for "paste and match style" (like you, I do not want to always use only plain text). Maybe someone else will eventually weigh in with a real solution. The solution I want is just to be able to consistently see any font variations within my message before I send the email.
    The info about the different ppi scales between Windows and Mac is interesting, although not relevant to this particular problem. It does explain the apparent overall size differences I have seen before.

Maybe you are looking for

  • Itunes wont open following upgrade to version 10.6. Restore Windows error

    iTunes just wont open following upgrade. How can I remove iTunes off my iMac and load software again. I can't remove from Finder or Preference it says iTunes must be installed on the machine? Help, I cant get to my music !!!!

  • URGENT -Material Sales text

    where will store the Sales text which we maintained in the Material master record. Can any body help me to solve this problem. Plz treat as urgent basis. Thx Ramesh.B

  • Role Access

    HI, I have created a role called home and assigned it to end user. when the end user logins he can see home page initially and can click on any link(i.e R1, R2, ....etc) on the home page. when he clicks on a link in home page, it will be navigated to

  • A new problem on me

    does anybody know what this means: I got all my devices disconnected. Lets say i just want to see if bios sees my dvd-rom. Turn on the computer and nothing. They tray dont even work so that says the dvd-rom is not getting any power. So next i try dis

  • How to configure WLS 10.3.x to recognize JSON?

    I deployed a web service to WLS 10.3.5 containing code to connect to a remote REST service. It failed to pass JSON to it via POST method even though my Content-Type and Accept HTTP headers are application/json. I printed out what the HttpURLConnectio