Custom Styles in TextEdit - Background Highlighting

Hi, I defined a custom/'favorite' style for use in TextEdit which applies yellow background highlighting to selected text. (The style was added to the GlobalPreferences.plist file, as I'm on Snow Leopard). The issue is that when I highlight text and apply this style, it overrides any prior formatting like bold, italic, or underline, and reverts the selection to plain text when applying the background highlighting.
I understand this is mechanically correct, because my user-defined Highlight style induces [plain text + yellow background color]. My question is this: is there any way to modify my defined style to preserve the original formatting of the text, adding only the background color without modifying the pre-existing text attributes? Basically I would like my bold, italic, underline, strikethroughs, font size, etc. to be preserved when applying a background color to selected text.
For reference, I defined the style by electing to 'add to favorite styles' a selection from one of the similarly pre-formatted rich text files that's available, and did NOT include the font or the ruler as part of the style. I understand that I could create separate favorite styles for highlight+bold, highlight+italic, highlight+underline, highlight+strikethrough, highlight+[each font size], and all combinations thereof, but applying each different style to each subsection of text would be as cumbersome as reformatting each subsection as +bold, +italics, etc. after the highlight it applied and text style is reverted to default.
I have extracted the NSFavoriteStyles section from the ~/Library/Preferences/GlobalPreferences.plist file and located the style I defined, it appears like this:
Highlighter =     {
        NSBackgroundColor = <62706c69 73743030 d4010203 04050615 16582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a3 07080f55 246e756c 6cd3090a 0b0c0d0e 5624636c 6173735c 4e53436f 6c6f7253 70616365 554e5352 47428002 10014831 20312030 2e3200d2 10111213 5a24636c 6173736e 616d6558 24636c61 73736573 574e5343 6f6c6f72 a2121458 4e534f62 6a656374 5f100f4e 534b6579 65644172 63686976 6572d117 1854726f 6f748001 08111a23 2d32373b 41484f5c 6264666f 747f8890 939caeb1 b6000000 00000001 01000000 00000000 19000000 00000000 00000000 00000000 b8>;
What would I need to add to this string to retain existing text formatting when applying the style? It should be possible, as applying the 'Underline' style does not override an existing 'Bold' style, for example, but I don't see any commands in those styles that supplement the information that appears in my defined 'Highlighter' style.
I also understand this may be pre-Lion specific, as I've heard the TextEdit program is now sandboxed in such a way as to prevent the definition of new styles. I'll have to try on my Mountain Lion machine when I have a chance. I appreciate any help, thanks!

Hello
It's been a while and I'm not sure you're still listenting to or interested in this.
Anyway I finally had some time to play with and come up with an implementation via system services.
There are three files to make the service, whose codes are listed below.
• main.m (wrapper executable)
• main.rb (service body)
• make (bash script to make .service from source)
# Recipe
1) Create the three plain text files (in utf8) by copy-pasting codes listed below and place them loose in a new directory, e.g., ~/Desktop/work.
2) Issue the following commands in Terminal, which yield a package named TextHighlightServices.service in ~/Desktop/work.
* You need to have gcc installed, which comes with Xcode.
cd ~/Desktop/work
chmod ug+x make
./make
3) Move the TextHighlightServices.service to ~/Library/Serivecs
4) Log out and log in to let the new service be recognised.
(This may not be necessary for .service, but I'd play for safety. Also you may use the following command in Terminal instead of re-login, if necessary:
# in 10.5
/System/Library/CoreServices/pbs
# in 10.6
/System/Library/CoreServices/pbs -flush
5) Done.
# Usage
If everything goes well, you'll see two services named "Text Highlight - Add" and "Text Highlight - Remove" in Services menu in TextEdit when you select some text in rich text mode. (In 10.6, services only appear in its applicable context, while in 10.5, they may yet appear in non-applicable context and be grayed-out.)
Invoke the serivces on selected rich text via menu or keyboard shortcuts and see if it works. Keyboard shortcuts are currently defined as Command-9 for highlight and Command-0 for unhighlight.
You may change the menu item names, keyboard shortcuts and highlight colour by changing the values in the #properties section at the beginning of make file. (Or you may directly edit Info.plist file in the package. But 'make' is instant and it'll be faster to re-make the package than to edit it manually)
# Notes
• Highlight and unhighlight are implemented as two services and you cannot assign one keyboard shortcut, e.g., Command-Y to both to toggle highlight state. (One 'toggle highlight service' is possible but you need to re-write the code as such)
• Keyboard shortcut is case-sensitive. E.g., J means Command-Shift-j.
• If keyboard shortcut is ignored, it is most likely that the key is already used for something else.
• This service is written to terminate itself if idle for ca. 20 seconds. It will be re-launched on demand. To keep the service running is not a problem, usually, but I noticed this rubycocoa code constantly uses ca 1.1% CPU and decided not to let it waste energy. If you rewrite the code in Objective-C proper, it would be 0.0% CPU usage in idle.
• Tested with 10.5.8 and 10.6.5.
# Files
main.m
// file
//     main.m
// function
//     wrapper executable to run Contents/Resources/main.rb
// compile
//     gcc -framework RubyCocoa -o PROGNAME main.m
#import <RubyCocoa/RBRuntime.h>
int main(int argc, const char *argv[])
    return RBApplicationMain("main.rb", argc, argv);
main.rb
# file
#     main.rb
# function
#     to provide text highlight services
require 'osx/cocoa'
include OSX
class Services < NSObject
    attr_reader :last_invoked
    def init()
        @last_invoked = NSDate.date
        self
    end
    # utility method
    def highlight_pboard_colour(option, pboard, colr)
        # int option : 0 = remove bg colour, 1 = add bg colour
        # NSPastedBoard *pboard : pasteboard passed via service
        # NSColor colr : background colour for highlight
        raise ArgumentError, "invalid option: #{option}" unless [0,1].include? option
        @last_invoked = NSDate.date
        # read rtf data from clipboard
        rtf = pboard.dataForType('public.rtf')
        # make mutable attributed string from rtf data
        docattr = OCObject.new
        mas = NSMutableAttributedString.alloc.objc_send(
            :initWithRTF, rtf,
            :documentAttributes, docattr)
        rase ArgumentError, "zero-length rtf is given" if mas.length == 0
        # add or remove background colour attribute
        r = NSMakeRange(0, mas.length)
        if option == 1
            mas.objc_send(
                :addAttribute, NSBackgroundColorAttributeName,
                :value, colr,
                :range, r)
        elsif option == 0
            mas.objc_send(
                :removeAttribute, NSBackgroundColorAttributeName,
                :range, r)
        end
        mas.fixAttributesInRange(r)
        # make rtf data from mutable attributed string
        rtf = mas.objc_send(
            :RTFFromRange, r,
            :documentAttributes, docattr)
        # write rtf data to the clipboard
        pboard.objc_send(
            :declareTypes, ['public.rtf'],
            :owner, nil)
        pboard.objc_send(
            :setData, rtf,
            :forType, 'public.rtf')
    end
    # service method 1 : highlight rtf
    def highlight_userData_error(pboard, udata, error)
        # NSPastedBoard *pboard : pasteboard passed via service
        # NSString *udata : space delimited string of red, green, blue, alpha components to define background colour
        # NSString **error
        # set background colour from given user data
        r, g, b, a = udata.to_s.split(/\s+/).map {|x| x.to_f}
        colr = NSColor.objc_send(
            :colorWithCalibratedRed, r,
            :green, g,
            :blue, b,
            :alpha, a)
        # add background colour to rtf
        self.highlight_pboard_colour(1, pboard, colr)
    end
    # register ruby method as objc method
    objc_method(:highlight_userData_error, 'v@:@@^@')
    # service method 2 : un-highlight rtf
    def unhighlight_userData_error(pboard, udata, error)
        # NSPastedBoard *pboard : pasteboard passed via service
        # NSString *udata : space delimited string of red, green, blue, alpha components to define background colour
        # NSString **error
        self.highlight_pboard_colour(0, pboard, nil)
    end
    # register ruby method as objc method
    objc_method(:unhighlight_userData_error, 'v@:@@^@')
end       
class AppDelegate < NSObject
    def init()
        @services = Services.alloc.init
        @timer = NSTimer.objc_send(
            :timerWithTimeInterval, 5.0,  # periodic check interval [sec]
            :target, self,
            :selector, :idle,
            :userInfo, nil,
            :repeats, true)
        @TTL = 20.0  # time to live in idle [sec]
        self
    end
    def applicationDidFinishLaunching(notif)
        NSApp.setServicesProvider(@services)
        NSRunLoop.currentRunLoop.objc_send(
            :addTimer, @timer,
            :forMode, NSDefaultRunLoopMode)
    end
    def applicationShouldTerminate(sender)
        @timer.invalidate
        NSTerminateNow
    end
    def idle(timer)
        if @services.last_invoked.timeIntervalSinceNow < -@TTL
            NSApp.terminate(self)
        end
    end
end
def main
    app = NSApplication.sharedApplication
    delegate = AppDelegate.alloc.init
    app.setDelegate(delegate)
    app.run
end
if __FILE__ == $PROGRAM_NAME    # = if this file is the primary ruby program currently executed
    main
end
make
#!/bin/bash
# file
#    make
# function
#    to make PROGNAME.service package from main.m and main.rb
export LC_ALL=en_GB.UTF-8
# properties
PROGNAME="TextHighlightServices"
EXECPATH="${PROGNAME}.service/Contents/MacOS/${PROGNAME}"
BNDL_TYPE="APPL"
BNDL_SIGNATURE="????"
BNDL_VERSION="1.0"
BUILD_VERSION="1"
SRC_VERSION="10000"
HIGHLIGHT_MENU_ITEM="Text Highlight - Add"
HIGHLIGHT_KEY="9"
UNHIGHLIGHT_MENU_ITEM="Text Highlight - Remove"
UNHIGHLIGHT_KEY="0"
HIGHLIGHT_COLOUR="1.0 1.0 0.6 1.0" # R B G A in [0.0, 1.0]
# make package directories
rm -rf "${PROGNAME}".service
mkdir -p "${PROGNAME}".service/Contents/{MacOS,Resources}
# make PkgInfo
cat <<EOF > "${PROGNAME}.service/Contents/PkgInfo"
${BNDL_TYPE}${BNDL_SIGNATURE}
EOF
# make Info.plist
cat <<EOF > "${PROGNAME}".service/Contents/Info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>English</string>
    <key>CFBundleExecutable</key>
    <string>${PROGNAME}</string>
    <key>CFBundleIdentifier</key>
    <string>bubo-bubo.${PROGNAME}</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>${PROGNAME}</string>
    <key>CFBundlePackageType</key>
    <string>${BNDL_TYPE}</string>
    <key>CFBundleShortVersionString</key>
    <string>${BNDL_VERSION}</string>
    <key>CFBundleSignature</key>
    <string>${BNDL_SIGNATURE}</string>
    <key>CFBundleVersion</key>
    <string>${BNDL_VERSION}</string>
    <key>NSPrincipalClass</key>
    <string>NSApplication</string>
    <key>NSServices</key>
    <array>
        <dict>
            <key>NSPortName</key>
            <string>${PROGNAME}</string>
            <key>NSMessage</key>
            <string>highlight</string>
            <key>NSMenuItem</key>
            <dict>
                <key>default</key>
                <string>${HIGHLIGHT_MENU_ITEM}</string>
            </dict>
            <key>NSKeyEquivalent</key>
            <dict>
                <key>default</key>
                <string>${HIGHLIGHT_KEY}</string>
            </dict>
            <key>NSSendTypes</key>
            <array>
                <string>NSRTFPboardType</string>
            </array>
            <key>NSReturnTypes</key>
            <array>
                <string>NSRTFPboardType</string>
            </array>
            <key>NSTimeout</key>
            <string>10000</string>
            <key>NSUserData</key>
            <string>${HIGHLIGHT_COLOUR}</string>
            <key>NSRequiredContext</key>
            <dict>
                <key>NSApplicationIdentifier</key>
                <array>
                    <string>com.apple.TextEdit</string>
                </array>
            </dict>
        </dict>
        <dict>
            <key>NSPortName</key>
            <string>${PROGNAME}</string>
            <key>NSMessage</key>
            <string>unhighlight</string>
            <key>NSMenuItem</key>
            <dict>
                <key>default</key>
                <string>${UNHIGHLIGHT_MENU_ITEM}</string>
            </dict>
            <key>NSKeyEquivalent</key>
            <dict>
                <key>default</key>
                <string>${UNHIGHLIGHT_KEY}</string>
            </dict>
            <key>NSSendTypes</key>
            <array>
                <string>NSRTFPboardType</string>
            </array>
            <key>NSReturnTypes</key>
            <array>
                <string>NSRTFPboardType</string>
            </array>
            <key>NSTimeout</key>
            <string>10000</string>
            <key>NSRequiredContext</key>
            <dict>
                <key>NSApplicationIdentifier</key>
                <array>
                    <string>com.apple.TextEdit</string>
                </array>
            </dict>
        </dict>
    </array>
    <key>NSUIElement</key>
    <string>1</string>
</dict>
</plist>
EOF
# make version.plist
cat <<EOF > "${PROGNAME}".service/Contents/version.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>BuildVersion</key>
    <string>${BUILD_VERSION}</string>
    <key>CFBundleShortVersionString</key>
    <string>${BNDL_VERSION}</string>
    <key>CFBundleVersion</key>
    <string>${BNDL_VERSION}</string>
    <key>ProjectName</key>
    <string>${PROGNAME}</string>
    <key>SourceVersion</key>
    <string>${SRC_VERSION}</string>
</dict>
</plist>
EOF
# make ServicesMenu.strings
mkdir -p "${PROGNAME}".service/Contents/Resources/English.lproj
cat <<EOF > "${PROGNAME}".service/Contents/Resources/English.lproj/ServicesMenu.strings
/* Services menu item to highlight or unhighlight the selected text */
"${HIGHLIGHT_MENU_ITEM}" = "${HIGHLIGHT_MENU_ITEM}";
"${UNHIGHLIGHT_MENU_ITEM}" = "${UNHIGHLIGHT_MENU_ITEM}";
EOF
# copy *.rb in Contents/Resoures
ditto *.rb "${PROGNAME}".service/Contents/Resources/
# compile wrapper executable
gcc -framework RubyCocoa -o "${EXECPATH}" main.m
It is fun to play with rubycocoa.
And glad if this helps.
Good luck,
H
cf.
http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/SysServices/SysService s.pdf
Message was edited by: Hiroto ( fixed 'make' to './make' in Recipe 2, sorry)

Similar Messages

  • SharePoint 2013 RTE Custom Styles lost on Team Site Wiki Page after you select a control in the editor

    I have a weird issue in that I have custom RTE styles working fine in publishing pages, but in the team site wiki page, when you first go into edit mode you see your styles, but if you highlight some text, select say the font drop down to expand it and then
    select it again to contract it (i.e. without selecting a font), all of a sudden all of the custom styles are lost and everything reverts back to the default RTE styles.
    In my master page I am running the following script to force my styles to be loaded.
    ExecuteOrDelayUntilScriptLoaded(
    function() {
         $(
    "div[RteRedirect]").each(function()
    varid = $(this).attr("RteRedirect"),
             editSettings = $(
    "#"+ id);
    if(editSettings.length > 0 &&
    editSettings[0].PrefixStyleSheet != 'custom-rte')
                 editSettings[0][
    'PrefixStyleSheet'] =
    'custom-rte';
                 editSettings[0][
    'StyleSheet'] =
    '\u002f_layouts\u002f15\u002fFiveP\u002frteStyles.css';
                 RTE.Canvas.fixRegion(id,
    false);
    "sp.ribbon.js");
    See below screenshots (note Heading 2 is orange).
    After you collapse the font menu, you see that the orange H2 has disappeared, and selecting the font drop down again now shows all of the default SharePoint RTE styles.
    I haven't been able to capture the Event that is being called using the debugger. Any ideas how to fix this?
    Alan Coulter.

    Hi,
    For this issue, I'm trying to involve someone familiar with this topic to further look at it.
    Thanks,
    Qiao
    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]
    Qiao Wei
    TechNet Community Support

  • OBIEE 11g ignoring custom styles after a space in the formatting

    Hi,
    Has anyone else ran into this odd little problem?
    I'm applying custom styles to our new corporate skin, and it's all working just fine until I enter a piece of code like this:
    .QCPageColumnSectionSidebar{padding-bottom:1px;width:100%;border:solid 1px #000080;background-color:#dce4f9;}
    It appears that as soon as OBIEE encounters the spaces in the CSS formatting, it escapes and ignores the rest. In this case, the border gets applied, but the background color does not. If I swap places of the two classes, then the background color is applied and the border is not.
    In addition, any styles defined after this style are ignored.
    When I inspect element in Firebug, I am seeing this behavior coming through on the presentation side. The CSS that follows the style with a space in it isn't appearing.
    The styles defined by default have very similar styles and they appear to work; does anyone have any idea why my custom styles aren't?
    Thanks in advance,
    Krista

    Some times we get unwanted code.. some thing like when you copy from browser to MS word some html code come along with...

  • Custom style classes

    hi all,
    Is it possible to create some custom style classes and assign them to styleClass property of some components?
    And if it possible, where to place those custom classes and how to use them?
    I've tried without success.
    Regards,
    Bassam

    So this begs the question... if I wanted to change the color of a font on a af:panelHeader for example, (inlineStyle="background-color:navy;color:white;") or I set it up as a class in my css e.g. (styleClass="ph" where the css class is ph{background-color:navy;color:white;}) why doesn't the af:panelHeader component render as one would expect... with a blue back ground and white text? I'm using JDeveloper11g.

  • [Solved] Keep the last button pressed with a custom style

    Hello,
    I have a VBox with 20 buttons and I have this style applied (menu.css) (only for VBox wrapper):
    .button:focused {
        -fx-background-color: #0768A9;
        -fx-text-fill: #FFFFFF;
    But when I pressed other button outside the VBox the style disappears, because the other button get the focus.
    I'm afraid I'm taking the wrong way.
    How I can do to keep the last button pressed with a custom style? (Only for buttons containing the VBox).
    Best regards

    I created a simple method to change background colors in buttons:
        private void setSelectedBtnStyle(Button bboat) {
      // Change style oldSelectedBoat
        selectedBoat.setStyle("-fx-background-color: white;-fx-text-fill: black;");
        // oldSelectedBoat var change to newSelectedBoat
        this.selectedBoat = bboat;
      // Change style newSelectedBoat
        selectedBoat.setStyle("-fx-background-color: #0768A9;-fx-text-fill: #FFFFFF;");;
    Surely not the best solution, but it works for me.
    Best regards.

  • Help with Spry Menu Bar 2.0 (vers. 1.0) - Placement of customized styles files

    Hello:
    I would like to congratulate the authors of the new Spry Menu Bar Framework 2.0 (vers. 1.0) -- it has truly been an advance and over the previous generation, and is much more user friendly for those without extensive knowledge of the spry framework.  I have also appreciated the tutorial created by David Powers that is found on the Adobe labs site, and find that it has been very helpful.
    However, I do have one general question that I would seek some clarification before completing the task of deploying the widget in its final form.  I have gone beyond the tutorial insofar as I have customized the styling to allow me to use background images for the menus and submenus in both static and hover states.  I have also gone directly (with add of the tutorial) to work on my own site rather than recreating the bayside tutorial.  I know have my styles embedding into a template page (.dwt).
    My question is whether those styles embedded in the head of the template page should be transferred to a separate styles page and attached (or possibly included in the styles page that handles the CSS for the layout aspects of my site), or whether it should overwrite the styles included in the basic styles skin for the widget.  The latter seems the most likely answer, as many of the classes are for the same names as those in my template page, but have different (and conflicting settings).  However I wanted to make certain of this before proceeding.
    Once again let me thank those responding to this query in advance for the helpful tips I have received along the way, and that will likely follow this post.
    I could post the css and the html with this querry, but I hope I have explained the question well enough that a general response will be all that I need.
    Thanks again for the help.
    Steve Webster

    Thanks for your helpful response.
    I had already tried the various options (overwriting basic styles, skins, etc) and quickly learned to back track as they were definitely not the answer to the question I posed.  I then included them in the customized style sheet for the entire site and clearly de-marked them as styles governing the spry menu widget 2.0 (1.0) with the warning that future developers working on the site should use care in amending them, and warning that they be remain included in the general styles file.
    I was going to indicate in response to my own query that this seemed to be the best practice, but your response confirmed what I had learned.
    Thanks once again for your helpful advice and intervention.
    Steve Webster.

  • Custom styles not showing up after upload

    I have recently begun using an external style sheet to
    control much of my formatting, mostly
    with no problem. But I've noted a couple of instances where
    the styles don't seem to 'catch'.
    One recent example, a major problem, is on this Q&A page
    on a site:
    http://www.pulversbriar.com/askmarty.htm
    I created a custom style class for both the questions and the
    answers, and included them in the external
    ("pipestyles.css" style sheet as follows:
    .askmarty_QUESTION {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-style: italic;
    color: #993300;
    background: #CCCCCC;
    .askmarty_ANSWER {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-weight: bolder;
    color: #993300;
    In DW, the styles appear fine. But when I upload the page to
    the server (including dependent files
    and the stylesheet), the styles don't work - I'm just getting
    black and white, unstyled text. Other styles
    in the style sheet *are* working, though.
    Any suggestions as to what might be going on, and/or how I
    can debug this?
    thanks in advance for any help--
    steve

    Your stylesheet is corrupt. You have a style inside of a
    style. Also your
    missing the px on a couple of font sizes.
    BEFORE - ( bad )
    .style9 {font-size: 12;
    color: #993300;
    font-weight: bold;
    .copyright {
    font: bold small-caps 9px Verdana, Arial, Helvetica,
    sans-serif;
    color: #999999;
    bottom: 50px;
    AFTER - ( good )
    .style9 {
    font-size: 12px;
    color: #993300;
    font-weight: bold;
    .copyright {
    font: bold small-caps 9px Verdana, Arial, Helvetica,
    sans-serif;
    color: #999999;
    bottom: 50px;
    Regards,
    ..Trent Pastrana
    www.fourlevel.com
    "sbell2200" <[email protected]> wrote in
    message
    news:e94b3f$lgc$[email protected]..
    >I have recently begun using an external style sheet to
    control much of my
    > formatting, mostly
    > with no problem. But I've noted a couple of instances
    where the styles
    > don't
    > seem to 'catch'.
    > One recent example, a major problem, is on this Q&A
    page on a site:
    >
    http://www.pulversbriar.com/askmarty.htm
    >
    > I created a custom style class for both the questions
    and the answers, and
    > included them in the external
    > ("pipestyles.css" style sheet as follows:
    >
    > .askmarty_QUESTION {
    > font-family: Verdana, Arial, Helvetica, sans-serif;
    > font-style: italic;
    > color: #993300;
    > background: #CCCCCC;
    > }
    > .askmarty_ANSWER {
    > font-family: Verdana, Arial, Helvetica, sans-serif;
    > font-weight: bolder;
    > color: #993300;
    >
    > In DW, the styles appear fine. But when I upload the
    page to the server
    > (including dependent files
    > and the stylesheet), the styles don't work - I'm just
    getting black and
    > white,
    > unstyled text. Other styles
    > in the style sheet *are* working, though.
    >
    > Any suggestions as to what might be going on, and/or how
    I can debug this?
    >
    > thanks in advance for any help--
    >
    > steve
    >

  • Custom style sheets

    hi,
    I want to create custom style sheets which has some new styles that I can specify but these styles use the styles from blaf.xss and i can overwrite the properties of those styles!
    I was successful in overwriting the blaf styles but I want to have my own style tags. I just want to have different names because, right now if I want to change the background color of a <rowLayout> I had to use the styleClass="OraBgColorDark" in the <rowLayout> tag which inturn uses the <style name="DarkBackground" > and in my custom.xss i had to overwrite the <style name="DarkBackground" > and provide a property called "background-color" with a certain color that I wanted. But what if did this
    <style name="MyColor">
          <!-- this is from the balf -->
          <includeStyle name="OraBgcolorDark">   
          <property name="background-color">#FFFFC0</property>
        </style>In the rowLayout i could specify the styleClass like this styleClass="MyColor"!!!
    I tried it but didn't get it to work. Can anyone suggest me the possible reasons or how I can reach my goal to have a stylesheet that has its own new tags that i could use?
    regards,
    raj

    please disregard the post. Read the Jdev doc a bit more and found the solution.
    regards,
    raj

  • New App Launcher Suite Bar in 365: what CSS styles affect the background color?

    There is a new suite bar in O365. What CSS styles affect the background color of the bar, app launcher button and the Office 365 text in SharePoint Online? I want to hide Office 365 text and add my logo there.

    Hi,
    Per my understanding, you might want to change the style of the suite bar and replace the “Office 365” text with your custom logo image.
    In Office 365 admin page, we can customize the theme of the suite bar for the whole :
    However, as there is no such option can replace the “Office 365” text with a custom icon there, a workaround is that we can use some custom JavaScript to modify the
    corresponding HTML source code to display the icon dynamically after the page loaded.
    After applying the code snippet below into the master page:
    <script type="text/javascript">
    _spBodyOnLoadFunctionNames.push("ready");
    function ready() {
    var logo = document.querySelector("#O365_MainLink_Logo");
    var s = '<img style="max-height: 27px" alt="logo" src="/_layouts/15/images/siteIcon.png?rev=38">';
    logo.innerHTML = s;
    </script>
    Every time when users open a page in this site, this custom code will be executed, the “Office 365” text will be replaced by a custom icon:
    More information about how to add custom code into master page(similar in SharePoint 2013):
    http://techtrainingnotes.blogspot.com/2012/05/adding-javascript-and-css-to-sharepoint.html
    What’s more, if doing in this way, we can only replace the “Office 365” text with a custom icon in Office 365 SharePoint Online sites, not the whole Office 365, this
    is a fact that you might want to know. For about how to replace that text for the whole organization, I suggest you open another thread in Office 365 forum, you will get more help and confirmed answers there.
    http://community.office365.com/en-us/forums/default.aspx
    Best regards      
    Patrick Liang
    TechNet Community Support

  • JSF: Using own custom styles in skin css file?

    I have created custom skin by defining custom css file and implementing predefined ADF style definitions (aliases).
    Also, I need some other styles for use on specific parts i application, and my idea was to put these styles in same css file which is used in skin definition.
    For example:
    .footer_txt     {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; color: #FFFFFF}
    My intention was to use this styles in styleClass attribute of various
    adf faces components
    But after starting application, I can't find my additional styles in generated css file (pfmskin-desktop-10_1_3_1_0-ie).
    Looks like that css generator is ignoring any styles which are not ADF predefined styles?
    I was thinking that this is possible, because at the end of srdemo.css file (in SRDemo application) there is one part like this
    /* custom styles that I made up and set on the styleClass attribute of various
    adf faces components */
    .adfFacesDemoSearchPanelGroup
    width:100%;
    padding:6px 6px 6px 26px;
    background-color: #0099CC;
    I can put my styles in separate css file, but then I have to include this file in every application page...
    Is it possible to have custom defined styles in skin css file, and use them in styleClass attribute?

    Hi,
    skinning only works with the ADF faces skin selectors. There are plans to support custom selectors in a future version
    Frank

  • Error while deploying, Custom Style Skin in OBIEE 11.1.1.6.7

    Hi,
    I have deployed Custom Style Skin in OBIEE 11.1.1.5 successfuly (with the help of http://www.rittmanmead.com/2010/12/oracle-bi-ee-11g-styles-skins-custom-xml-messages/ ).
    Now when we're moving RPD, Catalog & Custom Style Skin from OBIEE 11.1.1.5 to OBIEE 11.1.1.6.7, I could deploy RPD & Catalog but am not able to deploy Custom Style & Skin Folders.
    If you are aware of the process of deploying Custom Style & Skins (as mentioned in the link above), it requies:
    1. Custom Style & Skins folder to be Deploy using Weblogic Console.
    2. Making necessary changes in instanceconfig.xml (to point to the deployed folder) ---- this is where it's failing.
    When I do add necessary tags ( <URL> & <UI>) in instanceconfig.xml and restart Services. Presentation Services dosen't come up. Error message that is in log file is:
    In element URL: Can not have element children within a simple content.
    unknown element 'UI'
    Element 'UI' is not valid for content model : 'All(URL, SocketTimeoutSec,FileSizeMB)'
    Any pointers?
    Regards,
    Jitendra

    Hi,
    I too faced such issue, actually obiee11.1.1.5 version skin and style wont work in obiee11.1.1.6.0 and above patch ..
    u have do it once again by using obiee11.1.1.6.0 skin (because the 11.1.16.0 has UI and skin different from 11.1.1.5.0 )
    Thanks
    Deva

  • Customer Style & Skins in OBIEE 11.1.1.7

    Hi,
    Did anyone configure custom style and skins in the latest OBIEE (11.1.1.7)? I followed steps mentioned in OBE here http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/bi/bi1113/customizing_obiee11g/customizing_obiee11g.htm#t1,
    but that did not work.
    Thanks in advance

    Hi,
    u can add the new skins from the below mentioned path as welll
    obiee 11g  image path
    mark helps
    thanks

  • The custom style mapping option text still maintains the word formatting or it shows a style override in the InDesign style - how do I correct this?

    When I tell the custom style mapping option to format a Word style (from an rtf document) with the InDesign style, the text still maintains the word formatting or it shows a style override in the InDesign style. I have a large document that needs to import the styles correctly and I've followed the tutorials exactly however the placed text is still hanging onto the word RTF styles. I want the rtf text to convert to my InDesign styles completely without overrides.

    I actually need the cell styles. That's what sets my font, spacing, and GREP styles.
    I did find the solution today. In the table style or table setup, I needed to set the "Stroke Drawing Order" to "Column Strokes in Front". Even though it was previously set to "Best Joins" and I had no strokes for rows or for the table borders, it just wasn't giving priority to my dotted columns.
    Thanks for your response though!

  • Placing Word docs with custom style mapping

    I am trying to place Word 2007 docs in InDesign CS3 using custom style mapping.
    When I place the Word doc, InDesign creates a whole new set of styles with the correctly mapped new names but with the Word style definition. It records no name conflicts with the my already existing styles of the same names. Each of the new styles has the disc icon next to it, showing it was imported.
    If I delete each of the styles I can replace it with my original InDesign style, but isn't the point of style mapping to eliminate that step?
    Thanks.

    This issue is now solved in the 6.0.4 update. See the release notes for item #2335625.
    An important update to the InCopy and InDesign products has been released today!
    To install the update, choose Help > Updates from any Adobe CS4 application, or navigate to the Adobe Updater and launch it:
    Mac: /Applications/Utilities/Adobe Utilities/Updater6/Adobe Updater.app
    Win: C:\Program Files\Common Files\Adobe\Updater6\Adobe_Updater.exe
    You can also download the updates from Adobe.com at the following locations:
    InCopy Mac: http://www.adobe.com/support/downloads/product.jsp?product=30&platform=Macintosh
    InCopy Win: http://www.adobe.com/support/downloads/product.jsp?product=30&platform=WIndows
    InDesign Mac: http://www.adobe.com/support/downloads/product.jsp?product=31&platform=Macintosh
    InDesign Win: http://www.adobe.com/support/downloads/product.jsp?product=31&platform=WIndows
    Release notes are here: http://www.adobe.com/go/id6_readme_en

  • Load or import custom style mapping in link options – is that possible somehow?

    Hi Everyone,
    I'm working with Instructions for Use and Technical Manual documents in InDesign. I'm constantly fine-tuning our templates, and now I have to refresh them again, because of a brand refresh. I'm using the Custom Style Mapping in the Link Options panel a lot, because it helps us to copy the text from older documents to the new ones with the right formatting, with less effort. The only thing I miss is the “Load/Import Custom Style Mapping” option from this panel.
    Do you know if there’s any options to export/import/load these mappings somehow from one document to another? Is it possible to write a script for that? I find this part of InDesign quite unattached, it seems to me (based on my search) that no other people are using it. I feel lonely, help me here!
    (I have created many new mappings in an older document, and I’d like to be able to use them in the new templates as well, but I can only do that if I map the styles again. And it’s quite time consuming. Maybe I'm just using too many paragraph styles, I have no idea – this could be another question: what is too much when it comes to styles...)
    Thanks a lot,
    Zita

    Sync is not intended to be used as a backup service like you are talking about, but it will work as long as you save the Recovery Key, as Jefferson mentioned (you also need your Sync Username ''[email address you used]'' and your account Password).
    Mozilla has just started working a new "cloud service" that is code named '''PiCL''' for "Profile in CLoud", which I am expecting will be a lot easier to use and might allow the user to access their bookmarks and other data from the internet without adding a "borrowed" PC to your Sync account.

Maybe you are looking for

  • Delivery Split based on Schedule line data

    Hi, Would need some help in determining how to proceed with splitting delivery based on Schedule line data (Date/Time). If S.A 1 has line item 10 with two schedule lines SL1 and SL2 which happened in different times of the day, how to split this S.A

  • Drive not recognized - new issue...help please

    I am replacing a 120 GB drive with a 250 GB one to give more space for video files. On reboot, I get the message: You have inserted a drive not recognized...etc...with the choices to initialize, ignore or eject. Then I notice that the drive on the sa

  • Problem with indesign CS4 program

    I've searched for this already but have had no luck finding a fix. My problem is that when I am running indesign CS4 on my laptop I cannot select the master page nor any other pages. Also certain other controls are not functioning like ruler guides,

  • Problem in forwarding to a JSP file

    Here is my code. I'm not able to forward to another jsp when I click on the modify button. If I display anything using alert inside the modify function, it is displaying. But when I include the forward statement, the entire screen becomes blank. What

  • How can I download stories off my palm one ereader to my tablet?

    How can I download stories off my palm one ereader to my tablet