Discussion Locked

code option

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

how about a way to post code in a response that doesn't get formatted to include smiley images etc?

in both the Q&A and Discussion Centre?
something like the bbcode of:
[code]
insert code here
[/code]

to avoide posts that get this:
https://www.techrepublic.com.com/5208-6230-0.html?forumID=9&threadID=168994&messageID=1723694

5 replies

by tbragsda

.
I think we can talk with out that stuff, and the original punctuation smiley was fine.

I think the icons mess up any discussion, and people have been able to communicate without smiley, or hRu or BRB or...

Agree. It would help in a technical conversation, and should be more importian than whatever it adds to others, at least in this forum.

The other upgrades as of late are great. This is just one I think we can live without.

TBR

by oz_media

Formatting tags

Another way to enhance the communication of ideas in a discussion post is to add emphasis with basic text formatting. While the system does not allow HTML tags, we have made allowances for basic text features like bold, italic, underline, and verbatim text. To implement these formats, you use these special custom tags:

* Bold use [b] Bold [/b]
* Italic use [i] Italic [/i]
* Underline use [u] Underline [/u]
* Verbatim use [pre] Verbatim [/pre]

https://www.techrepublic.com.com/5100-22-5269527.html

tbragsda@...

As for the emoticons, it is hardly as bad as most forums where you have them doing just about everything, including anal. Whether you use a colon with a bracket or a :) doesn't really matter does it? They added some formatting code to TR and threw in emoticons, a few of them anyway, to top it off. Does it really offend you? :D

by jaqui

putting
Verbatim

EOQ;
return $output;
}

// string file_field ([string name])

// This function returns an HTML file field. These are used to specify
// files on the user's local hard drive, typically for uploading as
// part of the form. (See http://www.zend.com/manual/features.file-upload.php
// for more information about this subject.)

function file_field ($name="")
{
$output = <<
EOQ;
return $output;
}

// string submit_field ([string name [, string value]])

// This function returns an HTML submit field. The value of the field
// will be the string displayed by the button displayed by the user's
// browser. The default value is "Submit".

function submit_field ($name="", $value="")
{
if (empty($value)) { $value = "Submit"; }

$output = <<
EOQ;
return $output;
}

// string image_field ([string name [, string src [, string value]]])

// This function returns an HTML image field. An image field works
// likes a submit field, except that the image specified by the URL
// given in the second argument is displayed instead of a button.

function image_field ($name="", $src="", $value="")
{
if (empty($value)) { $value = $name; }

$output = <<
EOQ;
return $output;
}

// string reset_field ([string name [, string value]])

// This function returns an HTML reset field. A reset field returns
// the current form to its original state.

function reset_field ($name="reset", $value="Reset")
{
$output = <<
EOQ;
return $output;
}

// string checkbox_field ([string name [, string value [, string label [, string match]]]])

// This function returns an HTML checkbox field. The optional third argument
// will be included immediately after the checkbox field, and the pair
// is included inside a HTML tag - meaning that they will be
// displayed together on the same line. If the value of the
// second or third argument matches that of the fourth argument,
// the checkbox will be 'checked' (i.e., flipped on).

function checkbox_field ($name="", $value="", $label="", $match="")
{
$checked = ($value == $match || $label == $match) ? "checked" : "";
$output = << $label
EOQ;
return $output;
}

// string radio_field ([string name [, string value [, string label [, string match]]]])

// This function returns an HTML radio button field. The optional third
// argument will be included immediately after the radio button, and the pair
// is included inside a HTML tag - meaning that they will be
// displayed together on the same line. If the value of the
// second or third argument matches that of the fourth argument,
// the radio button will be 'checked' (i.e., flipped on).

function radio_field ($name="", $value="", $label="", $match="")
{
$checked = ($value == $match || $label == $match) ? "checked" : "";
$output = << $label
EOQ;
return $output;
}

// string select_field ([string name [, array items [, string default value]]])

// This function returns an HTML select field (a popup field).
// If the optional second argument is an array, each key in the array
// will be set to the value of an option of the select field, and
// the corresponding value from the array will be the displayed string
// for that option. If the key or the value from the array matches
// the optional third argument, that option will be designated as the default
// value of the select field.

function select_field ($name="", $array="", $value="")
{
$output = <<
EOQ;
if (is_array($array))
{
while (list($avalue,$alabel) = each($array))
{
$selected = ($avalue == $value || $alabel == $value) ?
"selected" : ""
;
$output .= <<$alabel
EOQ;
}
}
$output .= <<
EOQ;
return $output;
}

// string db_select_field ([string name [, string table name [, string value field [, string label field [, string sort field [, string match text [, string where clause]]]]]]])

// This function returns an HTML select field (popup field), based
// on the values in the MySQL database table specified by the second argument,
// as returned by the db_values_array() function (defined in
// /book/functions/db.php).

function db_select_field ($name="", $table="", $value_field=""
, $label_field="", $sort_field="", $match="", $where=""
)
{
$values = db_values_array($table, $value_field, $label_field
, $sort_field, $where
);
$output = select_field($name, $values, $match);
return $output;
}

// string db_radio_field (string name, string table name, string value field, string label field, string sort field, [string match text], [string where clause])

// This function returns a list of HTML radio button fields, separated
// by a non-breaking space HTML entity ( ) and a newline, based
// on the values in the MySQL database table named by the second
// argument, as returned by the db_values_array() function (defined in
// /book/functions/db.php).

function db_radio_field ($name="", $table="", $value_field=""
, $label_field="", $sort_field="", $match="", $where=""
)
{
$values = db_values_array($table, $value_field, $label_field
, $sort_field, $where
);

$output = "";
while (list($value, $label) = each($values))
{
$output .= radio_field($name, $value, $label, $match)
." \n"
;
}
return $output;
}

?>

it doesn't add the smileys?

I see it doesn't

never saw that option before.

by tbragsda

.
No, they don't offend me. I think its part of my general complaint about shorthand, sloppy discussions. Not like I think I am any better, but I dont see how a smiley does much to inhance a conversation.

Now if they did useful things like... Well, we can leave that for other themed forums. ;)

TBR

This discussion is closed to new replies.