NXP FORUM ADMIN - Posting in forum problem- #include preprocessor directive text and angle brackets disappear

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NXP FORUM ADMIN - Posting in forum problem- #include preprocessor directive text and angle brackets disappear

1,211 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Tue Dec 16 18:45:50 MST 2014
How do you enter something between left and right angle brackets in the WYSIWYG editor and have it display? Seems like a bit of a problem for posting C source code.  Is there an escape sequence that has to be used?

The second include is cr_section_macros.h within left and right angle brackets.

#include "chip.h"
#include <cr_section_macros.h>
0 Kudos
Reply
8 Replies

1,189 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcadmin on Thu Jan 08 15:32:00 MST 2015
Code windows are 'supposed' to support angle brackets.  However, this functionality is unreliable - sometimes it works, sometimes it does not.  NXP is trying to get an LPCware.com website update scheduled, which includes fixing this problem.  Hopefully this effort will start soon!  

code window test;  
#include <test> 
brackets <> should be in the above line < test > and <test>

hmmm... outside of a code block:  #include <test>
#include <test>
#include &lt;test&gt;
#include &amp;lt;test&amp;gt;
#include &amp;amp;lt;test&amp;amp;gt;
#include &amp;amp;amp;lt;test&amp;amp;amp;gt;

0 Kudos
Reply

1,189 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Thu Jan 08 11:42:09 MST 2015
NXP, I was really hoping that the forum admin or at least someone from NXP would look into this.
0 Kudos
Reply

1,189 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by starblue on Tue Jan 06 01:50:32 MST 2015
Yes, I agree, my posting was initially a test, and I was a bit surprised it worked at all.

Though today it wants them to be escaped twice, I'm a bit confused:
#include <test>
#include &lt;test&gt;
#include &amp;lt;test&amp;gt;
#include &amp;amp;lt;test&amp;amp;gt;
#include &amp;amp;amp;lt;test&amp;amp;amp;gt;

#include <test>
#include &lt;test&gt;
#include &amp;lt;test&amp;gt;
#include &amp;amp;lt;test&amp;amp;gt;
#include &amp;amp;amp;lt;test&amp;amp;amp;gt;
0 Kudos
Reply

1,189 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Mon Jan 05 10:35:46 MST 2015
I can see that in the normal portion of a post that the angle brackets would get interpreted as HTML syntax.  However, one would think that there must be some method to preprocess the content being placed in a code block to handle the angle bracket issue.

Perhaps turning off HTML interpretation in the code block would work.
0 Kudos
Reply

1,189 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by starblue on Mon Jan 05 06:23:02 MST 2015
In theory it should be possible to get &lt; and &gt;, which are normally interpreted as part of the HTML syntax, by escaping them as &amp;amp;lt; and &amp;amp;gt;. Though depending on the skill of the programmer of this bulletin board it may or may not work.

Escaping once is apparently not enough m) &amp;lt; and &amp;gt;

Jürgen
0 Kudos
Reply

1,189 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Wed Dec 17 10:38:00 MST 2014

Quote: TheFallGuy
Its been like this for a long time...

Okay, so why haven't they fixed it yet?   ;-)

Quote: MikeSimmonds
[Sorry, I don't know either.]

Thanks anyway :)

So my questions still remain unanswered.
0 Kudos
Reply

1,189 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MikeSimmonds on Wed Dec 17 02:49:06 MST 2014

Quote: TheFallGuy
Its been like this for a long time...



That's as maybe, but it does not answer the question.
[Sorry, I don't know either.]

Mike
0 Kudos
Reply

1,189 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Wed Dec 17 00:06:07 MST 2014
Its been like this for a long time...
0 Kudos
Reply