coloured code

Status
Not open for further replies.

large_ghostman

Well-Known Member
Most Helpful Member
anyone know how you get the code to be coloured when using the code tags? i have seen some on here but not sure how its done
 
anyone know how you get the code to be coloured when using the code tags? i have seen some on here but not sure how its done
LG, just testing it out,,, sorry no luck at my end,,,,

Code = C
void Slow_Delay(void)
{
int i, j;
for(i=0;i<4000;i++)
{
for(j=0;j<2;j++)
{
}
}
}
/Code
 
checking
Code:
void Slow_Delay(void)
{
int i, j;
for(i=0;i<4000;i++)
{
for(j=0;j<2;j++)
{
}
}
}
 
Here you go..

C:
#include <xc.h>

unsigned char thingy;

void main(void)
   {
   while(1)
      {
      }
   }

here's the edit box before..
 

Attachments

  • Capture.png
    20.5 KB · Views: 291
If we do code=asm, do we get the standard (?) Microchip colors? Or, should it be code=mpasm?

That is a nice enhancement.

John
 
not sure with ASM, yes it is a nice touch, i use programmers note pad II, so i like it as it looks the same on here as it does in that
 
I just did a quick and dirty test using preview, if that is an accurate way for a user to test. Neither code= asm nor code=mpasm work completely. Each gives colors, but they are messed up.

John
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…