• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How about a [code][/code] tag?

Several times, I've needed to preserve the original formatting of a message (for C++ code or ascii drawings) and without any sort of code tag, the text becomes hosed.

Would this be possible with FuseTalk, or would that be a drain on the boards like so many other great ideas?
 
I have a solution....its not the best right now, as I'm really an intro programmer...but...I've had similar problems dealing with text that needed to be formatted, and ended up writing a program for it. I've not yet had a chance to learn file IO (god, I have WAY too many other things to do, and while it'd only take a little while, I just don't have the time yet), so to use the program you still need to use file redirection (*proggyname.exe* < *fileinput* > *fileoutput*

an example would be &quot;c:\>setispylog.exe < fileinput.txt > fileoutput.txt&quot;

If you find it useful, throw up a link or whatever, but please do give me credit....


Using it the sourcecode for the program produces this:


#include..<stdio.h>
#include..<string.h>

void..init_string(char..*string)
{


......int..index;
......for(index..=..0;..index..<..509;..index++)
......{
............string[index]..=..'\0';
......}
}

int..main()
{..
......char..string[509];
......int..index;
......int..str_length;
......
......init_string(string);
......
......while(gets(string)..!=..'\0')
......{
............str_length..=..(strlen(string));
............printf(&quot;\n&quot😉;..............
............for(index..=..0;..index..<..str_length;..index++)
............{
..................if(string[index]..==..'.')
........................string[index]..=..'.';
..................if(string[index]..==..'..')
..................{
........................printf(&quot;.&quot😉;
........................string[index]..=..'.';
..................}
..................
..................if(string[index]..==..'\t')
..................{
........................printf(&quot;.............&quot😉;
........................string[index]..=..'.';
..................}
..................printf(&quot;%c&quot;,..string[index]);
............}
......}
......return..0;
}..

The compiled program can be found at

this place. You'll have to right click, and do a file-save as, but that shouldn't be too tough 🙂 I wrote the program more for formatting log files for Seti@Home, but I've found that it works just fine on most anything 🙂

BTW - the string length is the 509 because that's the &quot;maximum minimal&quot; number that the C standard requires... anything higher and...well, I don't know the reason, I just know that it is....Oh yeah, and it prints out so many freaking periods because the font that the forums use makes the period to take up the width of half any other character. Thus, it prints out two to make up for it....

And one other thing - criticizm is welcome, but laughing at it isn't 😀

Enjoy....
 
Zuni, this is something that would be very nice to have implemented. Besides the obvious use in formating code, it is very helpfull whenever anyone wants to post any kind of a table.

AFAIK, all you would have to do is use the <PRE> tags in html
 
There's already a blank character which can work for ya...



Pretender, in conjunction with his ingenuity and fingers, have come up with the following.
.
.
.
.
.
.
.
.
 .
  .
   .
    .
     .
      .
       .
        .
          .

Hold alt, and on the number pad, press 0160. You get an empty character, which, since it's different than space, can be used multiple times and can be used for spacing. To use it multiple times, after you do it once, just copy/paste the blank character.

Happy formatting.



 
Pretender...

There's more to it than just that. In a fixed width font, every character takes up the same amount of space. Whether it be an i, a w, or whatever, it uses the same width. The blank character would handle some of the problem, but not all of it.

The only real way to do it would be to temporarily change the font to a fixed width font (like the one that shows when you type a reply).

Viper GTS
 
Pretender, thanks. I didn't know the empty character was actually different than the space, but I agree with Viper.

It certainly helps, but it would be a pain to try formatting an ASCII picture or something.
 
Back
Top