<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Highlight a sentence in PROC ODSTEXT in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-just-one-word-in-a-paragraph-using-PROC-ODSTEXT/m-p/900506#M26418</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; My memory is that ODS PDF can only have 1 color for the background in a cell, so do not think your backgroundcolor=yellow is going to work. You can however italicize, bold and change the size and foreground color for just part of the text within 1 cell as shown below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1698600976605.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89193iA822FDDB11A7CF26/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1698600976605.png" alt="Cynthia_sas_0-1698600976605.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I did simplify your code a bit and I changed from the original style ODS ESCAPECHAR to the most current (SAS 9.2) "ESCAPECHAR function" format for using ODS ESCAPECHAR. Everything except backgroundcolor worked for me. I had to doctor my screen shot and make the full text of the paragraph smaller, so it would fit in the screen shot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If you really need the background color for your sentence to be yellow, I don't think you can do that with PDF.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Sun, 29 Oct 2023 17:40:43 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2023-10-29T17:40:43Z</dc:date>
    <item>
      <title>Style just one word in a paragraph using PROC ODSTEXT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-just-one-word-in-a-paragraph-using-PROC-ODSTEXT/m-p/276815#M16056</link>
      <description>&lt;P&gt;Hi - How can I style only one word in a paragraph within PROC ODSTEXT, e.g. how would I make bold just the word here in the following code snippet?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html close;
options nodate;
title 'Using PROC ODSTEXT';
footnote 'The ODS Destination for PDF';
ods pdf file="temp.pdf";
proc odstext;
   p 'I want to style just one word; &lt;STRONG&gt;HERE&lt;/STRONG&gt;';
   p 'You can also format your text.' / style=[color=red fontsize=25pt];
   
run;

ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 00:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-just-one-word-in-a-paragraph-using-PROC-ODSTEXT/m-p/276815#M16056</guid>
      <dc:creator>mduarte</dc:creator>
      <dc:date>2016-06-13T00:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Style just one word in a paragraph using PROC ODSTEXT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-just-one-word-in-a-paragraph-using-PROC-ODSTEXT/m-p/276818#M16057</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ODS ESCAPECHAR to the rescue! When you want to change the style of one word in a cell or text string, then you use a feature called "in-line formatting" using ODS ESCAPECHAR. Basically, you declare a character to get ODS attention and then you specify your style string in curly braces with the style attributes you are changing in square brackets, as shown here:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file='c:\temp\use_bold.pdf' ;
    
ods escapechar='^';
options nodate;
title 'Using PROC ODSTEXT';
footnote 'The ODS Destination for PDF';
proc odstext;
   p 'I want to style just one word; ^{style[color=purple fontweight=bold fontsize=25pt]HERE}^{newline 2}';
   p 'You can ^{style[textdecoration=underline]also} format your text.' / style=[color=red fontsize=25pt];
run;

ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Partial PDF results:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="escapechar.png" alt="escapechar.png" src="https://communities.sas.com/t5/image/serverpage/image-id/3597iAFC35CF8FDC5046A/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; There have been a LOT of postings -- search on ESCAPECHAR or on in-line formatting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 00:35:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-just-one-word-in-a-paragraph-using-PROC-ODSTEXT/m-p/276818#M16057</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-06-13T00:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Style just one word in a paragraph using PROC ODSTEXT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-just-one-word-in-a-paragraph-using-PROC-ODSTEXT/m-p/276820#M16058</link>
      <description>Great - worked perfectly! Thank-you also for the "search terms" ..</description>
      <pubDate>Mon, 13 Jun 2016 01:05:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-just-one-word-in-a-paragraph-using-PROC-ODSTEXT/m-p/276820#M16058</guid>
      <dc:creator>mduarte</dc:creator>
      <dc:date>2016-06-13T01:05:41Z</dc:date>
    </item>
    <item>
      <title>Highlight a sentence in PROC ODSTEXT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-just-one-word-in-a-paragraph-using-PROC-ODSTEXT/m-p/297163#M16820</link>
      <description>&lt;P&gt;I'm trying to highlight a sentence without success. Is this even possible in PROC ODSTEXT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ODS PDF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILE="xxx.pdf"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; STYLE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =styles.minimal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; PDFTOC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =2&lt;BR /&gt;&amp;nbsp;&amp;nbsp; AUTHOR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ='RTI International'&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ANCHOR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ='SNFRM_REPORT'&lt;BR /&gt;&amp;nbsp;&amp;nbsp; BOOKMARKLIST =none&lt;BR /&gt;&amp;nbsp;&amp;nbsp; BOOKMARKGEN&amp;nbsp; =NO&lt;BR /&gt;&amp;nbsp;&amp;nbsp; COMPRESS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =9&lt;BR /&gt;&amp;nbsp;&amp;nbsp; COLOR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =FULL&lt;BR /&gt;&amp;nbsp;&amp;nbsp; SUBJECT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ="Skilled Nursing Facility Quality Measure"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; KEYWORDS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ="Skilled Nursing Facility 30-Day All-Cause Readmission Measure (SNFRM)"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; TITLE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ="The Skilled Nursing Facility Value-Based Purchasing Confidential Feedback Quarterly Report";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ODS ESCAPECHAR='^';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; FOOTNOTE2 j=center color=black font="Times" height=11pt "1";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ODS PDF STARTPAGE=NO;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* ----------------------------------------------------------------- */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ODS PROCLABEL "Opening";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROC ODSTEXT;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cellstyle 1 as {font_size=11pt font_weight=medium&amp;nbsp; just=l font_face=Times};&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p "Below you will find the layout of this report that will be furnished to you quarterly via the Nursing Home Compare Confidential WEB Portal, beginning October, 2016.&amp;nbsp; ^S={&lt;STRONG&gt;backgroundcolor=yellow&lt;/STRONG&gt; font_size=11pt font_weight=bold fontstyle=italic just=l font_face=Times}This document does not include individual SNF performance at this time, but rather is intended to inform you of the SNF VBP measure and the data source used to calculate measure performance.";&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 12:32:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-just-one-word-in-a-paragraph-using-PROC-ODSTEXT/m-p/297163#M16820</guid>
      <dc:creator>Dick_Pickett</dc:creator>
      <dc:date>2016-09-08T12:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight a sentence in PROC ODSTEXT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-just-one-word-in-a-paragraph-using-PROC-ODSTEXT/m-p/900506#M26418</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; My memory is that ODS PDF can only have 1 color for the background in a cell, so do not think your backgroundcolor=yellow is going to work. You can however italicize, bold and change the size and foreground color for just part of the text within 1 cell as shown below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1698600976605.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89193iA822FDDB11A7CF26/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1698600976605.png" alt="Cynthia_sas_0-1698600976605.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I did simplify your code a bit and I changed from the original style ODS ESCAPECHAR to the most current (SAS 9.2) "ESCAPECHAR function" format for using ODS ESCAPECHAR. Everything except backgroundcolor worked for me. I had to doctor my screen shot and make the full text of the paragraph smaller, so it would fit in the screen shot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If you really need the background color for your sentence to be yellow, I don't think you can do that with PDF.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2023 17:40:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Style-just-one-word-in-a-paragraph-using-PROC-ODSTEXT/m-p/900506#M26418</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-10-29T17:40:43Z</dc:date>
    </item>
  </channel>
</rss>

