large_ghostman Well-Known Member Most Helpful Member Oct 20, 2013 #1 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
Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member Oct 20, 2013 #2 You have to manually write the code tags out and include the type of code... Ie C or ASM code=C ... /code Click to expand...
You have to manually write the code tags out and include the type of code... Ie C or ASM code=C ... /code Click to expand...
large_ghostman Well-Known Member Most Helpful Member Oct 20, 2013 #4 tried and it didnt work!! can you do a screen shot of a page edit showing what you mean?
ericgibbs Well-Known Member Most Helpful Member Oct 20, 2013 #5 Little Ghostman said: 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 Click to expand... 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
Little Ghostman said: 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 Click to expand... 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
F fvm Member Oct 20, 2013 #7 checking Code: void Slow_Delay(void) { int i, j; for(i=0;i<4000;i++) { for(j=0;j<2;j++) { } } }
large_ghostman Well-Known Member Most Helpful Member Oct 20, 2013 #9 fvm i can get normal code tags to work just not the C code tags
Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member Oct 20, 2013 #10 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: 406
Here you go.. C: #include <xc.h> unsigned char thingy; void main(void) { while(1) { } } here's the edit box before..
large_ghostman Well-Known Member Most Helpful Member Oct 20, 2013 #12 BTW why declare a variable then not use it!
jpanhalt Well-Known Member Most Helpful Member Oct 20, 2013 #13 If we do code=asm, do we get the standard (?) Microchip colors? Or, should it be code=mpasm? That is a nice enhancement. John
If we do code=asm, do we get the standard (?) Microchip colors? Or, should it be code=mpasm? That is a nice enhancement. John
large_ghostman Well-Known Member Most Helpful Member Oct 20, 2013 #14 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
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
jpanhalt Well-Known Member Most Helpful Member Oct 20, 2013 #15 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
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
ElectroMaster Administrator Oct 20, 2013 #16 We use the software GeSHi to color code. More information on the languages is here: **broken link removed**
We use the software GeSHi to color code. More information on the languages is here: **broken link removed**
large_ghostman Well-Known Member Most Helpful Member Oct 20, 2013 #17 i just get a blank page with that link EM
jpanhalt Well-Known Member Most Helpful Member Oct 20, 2013 #18 Little Ghostman said: i just get a blank page with that link EM Click to expand... Worked for me. Just add the http:// in your browser window. @EM Apparently Microchip asm is included (simply code=asm). Next time I have clean code, e.g., fixed with Pommie's Code Tidy, I will try it. John
Little Ghostman said: i just get a blank page with that link EM Click to expand... Worked for me. Just add the http:// in your browser window. @EM Apparently Microchip asm is included (simply code=asm). Next time I have clean code, e.g., fixed with Pommie's Code Tidy, I will try it. John