Forum software updated to support code tags (again).

Good evening fellow forum members.

Since we updated the Forum software to Drupal Version 7 the code filters had not been working.

This made it very difficult to post XML, HTML examples to forum posts.

The filter needed to be moved to the bottom of the list, now text formats BBCode and Filtered HTML both render code properly.

To use simply encapsulate your text in the [code][code]tags[/code][/code]

Here is an example of a PS without the code tags:

[root@xxx admin]# ps au
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 2809 0.0 0.0 1748 448 tty1 Ss+ Mar27 0:00 /sbin/mingetty tty1
root 2810 0.0 0.0 1748 440 tty2 Ss+ Mar27 0:00 /sbin/mingetty tty2
root 2811 0.0 0.0 1748 448 tty3 Ss+ Mar27 0:00 /sbin/mingetty tty3
root 2812 0.0 0.0 1748 448 tty4 Ss+ Mar27 0:00 /sbin/mingetty tty4
root 2817 0.0 0.0 1748 444 tty5 Ss+ Mar27 0:00 /sbin/mingetty tty5
root 2818 0.0 0.0 1748 440 tty6 Ss+ Mar27 0:00 /sbin/mingetty tty6
root 7344 0.0 0.2 4636 1412 pts/0 Ss+ 19:49 0:00 -bash
root 12703 0.0 0.2 4636 1416 pts/1 Ss 20:59 0:00 -bash
root 13502 0.0 0.1 4352 940 pts/1 R+ 21:08 0:00 ps au
[root@xxxx admin]#

Now with the code tags:

[code] [root@xxxx admin]# ps au
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 2809 0.0 0.0 1748 448 tty1 Ss+ Mar27 0:00 /sbin/mingetty tty1
root 2810 0.0 0.0 1748 440 tty2 Ss+ Mar27 0:00 /sbin/mingetty tty2
root 2811 0.0 0.0 1748 448 tty3 Ss+ Mar27 0:00 /sbin/mingetty tty3
root 2812 0.0 0.0 1748 448 tty4 Ss+ Mar27 0:00 /sbin/mingetty tty4
root 2817 0.0 0.0 1748 444 tty5 Ss+ Mar27 0:00 /sbin/mingetty tty5
root 2818 0.0 0.0 1748 440 tty6 Ss+ Mar27 0:00 /sbin/mingetty tty6
root 7344 0.0 0.2 4636 1412 pts/0 Ss+ 19:49 0:00 -bash
root 12703 0.0 0.2 4636 1416 pts/1 Ss 20:59 0:00 -bash
root 13502 0.0 0.1 4352 940 pts/1 R+ 21:08 0:00 ps au
[root@xxxx admin]#
[/code]

As you can see it makes the text much more readable.

Enjoy…

Leave a Reply