C Code Tags bug?

Status
Not open for further replies.

Vizier87

Active Member
Hi everyone,
Last time I posted a C code, EM himself edited it from[C0DE][/CODE] to
C:
.
I'd say it's a very good feature of the forum, and I emulated EM's way of doing it. However, of late, I couldn't make it display as a C code anymore. I'd say I really like the highlights of the code in color.

Anyone else experiencing the same problems?

Vizier87
 
Testing,
C:
void InitTimer1(){
    t1con=0xB0;             //timer 1 prescaller 8 and RD16
    ccp1con=0x0b;           //special event trigger
    ccpr1l=52;              //at 52uS = 1 bit width
    ccpr1h=0;
    pie1.CCP1IE=1;          //enable interrupt
    ipr1.CCP1IP=1;          //high priority
    t3con &= 0b10110111;    //ccp uses timer 1
    pir1.CCP1IF=0;          //clear any interrupts
}

void InitTimer2(){
    t2con=(7<<T2OUTPS0)+0;  //pre=8 and post=4
    pr2=52;                 //1 bit time
    ipr1.TMR2IP=1;          //timer 2 high priority
    pie1.TMR2IE=1;
    pir1.TMR2IF=0;
}

Yes, the
C:
 tags appear to be broken.

Mike.
 
Last edited by a moderator:
Hi Guys,

I had to disable the mod because it was causing some posts to disappear. I will investigate further to try and figure out the issue.

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