<?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 What controls greyed out text in editor window? in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/What-controls-greyed-out-text-in-editor-window/m-p/710240#M9271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pre-processor if/else statement and which text is greyed out doesn't seem to change based upon my project options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;#if defined HIGH_POWER_BOARD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&amp;nbsp;some_function();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;#elif defined LOW_POWER_BOARD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&amp;nbsp; another_function();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;#else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&amp;nbsp;#error Board Type needs defining&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;In my project options I have two configurations defined ( Project /Properties / C/C++ Build / Configuration ) - &lt;SPAN style="font-family: book antiqua,palatino,serif;"&gt;&lt;EM&gt;High Power Config&lt;/EM&gt;&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="font-family: book antiqua,palatino,serif;"&gt;&lt;EM&gt;Low Power Config&lt;/EM&gt;&lt;/SPAN&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;In defined symbols I have (Project /Properties / C/C++ Build / Settings / Tool Settings / Cross ARM C Compiler / Preprocessor / Defined Symbols ) I have defined &lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;HIGH_POWER_BOARD&lt;/SPAN&gt; for &lt;SPAN style="font-family: book antiqua,palatino,serif;"&gt;&lt;EM&gt;High Power Config&lt;/EM&gt;&lt;/SPAN&gt; and &lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;LOW_POWER_BOARD&lt;/SPAN&gt;. for &lt;SPAN style="font-family: book antiqua,palatino,serif;"&gt;&lt;EM&gt;Low Power Config&lt;/EM&gt;&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;When &lt;SPAN style="font-family: book antiqua,palatino,serif;"&gt;&lt;EM&gt;High Power Config&lt;/EM&gt;&lt;/SPAN&gt; is active 2nd &amp;amp; 3rd blocks above are greyed out and the 1st block of code is the code that's compiled.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;So when I have the &lt;SPAN style="font-family: book antiqua,palatino,serif;"&gt;&lt;EM&gt;Low Power Config&lt;/EM&gt;&lt;/SPAN&gt; active I'd expect the 1st &amp;amp; 3rd blocks above to be greyed out with the 2nd block compiled. The 2nd block (&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;another_function()&lt;/SPAN&gt;) is the code that's compiled and active, however it's still the 2nd and 3rd block that's greyed out.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Basically the correct code is compiled/included however the incorrect code is greyed out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;I've attached a screenshot below showing an example from my code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/30407i2A2CBFDBFEDFB57F/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.png" alt="error.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Aug 2017 14:58:36 GMT</pubDate>
    <dc:creator>beng_</dc:creator>
    <dc:date>2017-08-29T14:58:36Z</dc:date>
    <item>
      <title>What controls greyed out text in editor window?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/What-controls-greyed-out-text-in-editor-window/m-p/710240#M9271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pre-processor if/else statement and which text is greyed out doesn't seem to change based upon my project options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;#if defined HIGH_POWER_BOARD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&amp;nbsp;some_function();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;#elif defined LOW_POWER_BOARD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&amp;nbsp; another_function();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;#else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;&amp;nbsp;#error Board Type needs defining&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;In my project options I have two configurations defined ( Project /Properties / C/C++ Build / Configuration ) - &lt;SPAN style="font-family: book antiqua,palatino,serif;"&gt;&lt;EM&gt;High Power Config&lt;/EM&gt;&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="font-family: book antiqua,palatino,serif;"&gt;&lt;EM&gt;Low Power Config&lt;/EM&gt;&lt;/SPAN&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;In defined symbols I have (Project /Properties / C/C++ Build / Settings / Tool Settings / Cross ARM C Compiler / Preprocessor / Defined Symbols ) I have defined &lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;HIGH_POWER_BOARD&lt;/SPAN&gt; for &lt;SPAN style="font-family: book antiqua,palatino,serif;"&gt;&lt;EM&gt;High Power Config&lt;/EM&gt;&lt;/SPAN&gt; and &lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;LOW_POWER_BOARD&lt;/SPAN&gt;. for &lt;SPAN style="font-family: book antiqua,palatino,serif;"&gt;&lt;EM&gt;Low Power Config&lt;/EM&gt;&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;When &lt;SPAN style="font-family: book antiqua,palatino,serif;"&gt;&lt;EM&gt;High Power Config&lt;/EM&gt;&lt;/SPAN&gt; is active 2nd &amp;amp; 3rd blocks above are greyed out and the 1st block of code is the code that's compiled.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;So when I have the &lt;SPAN style="font-family: book antiqua,palatino,serif;"&gt;&lt;EM&gt;Low Power Config&lt;/EM&gt;&lt;/SPAN&gt; active I'd expect the 1st &amp;amp; 3rd blocks above to be greyed out with the 2nd block compiled. The 2nd block (&lt;SPAN style="font-family: courier new,courier,monospace; color: #0000ff;"&gt;another_function()&lt;/SPAN&gt;) is the code that's compiled and active, however it's still the 2nd and 3rd block that's greyed out.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Basically the correct code is compiled/included however the incorrect code is greyed out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;I've attached a screenshot below showing an example from my code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/30407i2A2CBFDBFEDFB57F/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.png" alt="error.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 14:58:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/What-controls-greyed-out-text-in-editor-window/m-p/710240#M9271</guid>
      <dc:creator>beng_</dc:creator>
      <dc:date>2017-08-29T14:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: What controls greyed out text in editor window?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/What-controls-greyed-out-text-in-editor-window/m-p/710241#M9272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;Eclipse uses the Index data base for this (it is a kind of data base). It could be that your database is not correct. And I recommend that you turn off heuristics. Have a read at &lt;A class="link-titled" href="https://mcuoneclipse.com/2012/03/20/fixing-the-eclipse-index/" title="https://mcuoneclipse.com/2012/03/20/fixing-the-eclipse-index/"&gt;Fixing the Eclipse Index | MCU on Eclipse&lt;/A&gt;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 16:00:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/What-controls-greyed-out-text-in-editor-window/m-p/710241#M9272</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2017-08-29T16:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: What controls greyed out text in editor window?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/What-controls-greyed-out-text-in-editor-window/m-p/710242#M9273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's worked thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 11:04:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/What-controls-greyed-out-text-in-editor-window/m-p/710242#M9273</guid>
      <dc:creator>beng_</dc:creator>
      <dc:date>2017-08-30T11:04:25Z</dc:date>
    </item>
  </channel>
</rss>

