I posted some code PIC18F47J13 Capture Mode? with code tags. It was properly formatted. In fact I posted it again adding an extra indent. But the indents aren't there after I posted.
if (PIR4bits.CCP5IF == 1) {
PIR4bits.CCP5IF = 0;
unsigned char thisPeriod;
thisPeriod = CCPR5H;
thisPeriod = (thisPeriod << 8) | CCPR5L;
ticksPerRev = abs(thisPeriod - prevCCPPeriod);
prevCCPPeriod = thisPeriod;
revTimeUpdated = 1;
}
An additional thought: Are you replacing tabs with spaces?
Are you sure? Is it possible that what you thought there were tabs, were converted to spaces? What is your properties setting for tabs to spaces in MPLABX?Code tags used to accept tabs.
As my boss would say "Are you Pittsburgh sure"?Are you sure? Is it possible that what you thought there were tabs, were converted to spaces? What is your properties setting for tabs to spaces in MPLABX?
Perhaps most important, several other members have posted properly formatted C-code as text since your original post.
I was wondering the same thing. My best guess is it refers to selecting a block of code and then indenting it using some toolbar icon. I have no idea why you would ever make that level of indenting different than what you get with the tab key, but maybe they saw some use scenario for it.What the heck is the difference between a tab and an indent?
P.S> I did upgrade MPLabX recently. I wonder if there is a difference in the default settings for the tab/space thing?
Why don't you check?What the heck is the difference between a tab and an indent?
P.S> I did upgrade MPLabX recently. I wonder if there is a difference in the default settings for the tab/space thing?
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
|
Using CODE Tags | Off-Topic | 13 | |
K | General Feedback Code tags don't appear to work right | Feedback and Suggestions | 1 | |
![]() |
CODE TAGS - No Assembly Language Options? | Feedback and Suggestions | 8 | |
![]() |
Subject of Code Tags. | Microcontrollers | 9 | |
![]() |
Please use code tags when posting pieces of code | Microcontrollers | 0 |
by Jake Hertz
by Aaron Carman
by Robert Keim