HTML Tabs
-
I don't know if it is possible on this form, but some other forms let us add html tags to pretty-up the code that we post. For example: [code] class MyClass { }; [/code] When the above example is displayed, the text between the tags are aligned and tabbed something like what you would see in the VC6 IDE.
-
I don't know if it is possible on this form, but some other forms let us add html tags to pretty-up the code that we post. For example: [code] class MyClass { }; [/code] When the above example is displayed, the text between the tags are aligned and tabbed something like what you would see in the VC6 IDE.
Well, you *can* do: <pre>
class MyClass
{};
</pre> Although it only reformats the code for articles, not in the forums. Still, it does *preserve* spacing (except for extra blank spaces, which it seems to trash with extreme prejudice), so you can use something like SciTE to do formatting for you if you wish. I agree it would be nice to have some sort of feature that would pre-process posts (instead of doing all the reformatting when the page is displayed) in order to do stuff like automatically creating clickable links, syntax highlighting, conversion of < and > to < and >, etc.
- Shog9 -
Aaah... It's time to relax. You know what that means: a glass of beer, your favorite ergo chair... And of course, The Code Project loaded on your Personal Computer System. So go on, and indulge yourself, put your feet up. Lean back and just enjoy the articles. After all, CP sooths even the savage :bob:
-
Well, you *can* do: <pre>
class MyClass
{};
</pre> Although it only reformats the code for articles, not in the forums. Still, it does *preserve* spacing (except for extra blank spaces, which it seems to trash with extreme prejudice), so you can use something like SciTE to do formatting for you if you wish. I agree it would be nice to have some sort of feature that would pre-process posts (instead of doing all the reformatting when the page is displayed) in order to do stuff like automatically creating clickable links, syntax highlighting, conversion of < and > to < and >, etc.
- Shog9 -
Aaah... It's time to relax. You know what that means: a glass of beer, your favorite ergo chair... And of course, The Code Project loaded on your Personal Computer System. So go on, and indulge yourself, put your feet up. Lean back and just enjoy the articles. After all, CP sooths even the savage :bob:
Shog9 wrote: (except for extra blank spaces, which it seems to trash with extreme prejudice), To keep the blank lines but a space on it, then the line will be preserved.
class MyClass
{};
Its a tad annoying; but at least there is a work around :) James "Java is free - and worth every penny." - Christian Graus
-
Shog9 wrote: (except for extra blank spaces, which it seems to trash with extreme prejudice), To keep the blank lines but a space on it, then the line will be preserved.
class MyClass
{};
Its a tad annoying; but at least there is a work around :) James "Java is free - and worth every penny." - Christian Graus