Multilingual VS HTML editor

Re: Multilingual VS HTML editor

by Gordon Bateson -
Number of replies: 0
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Helen,
thanks for the info on code formatting approve

Here's what I was trying to write earlier:

[code php]
$languages = get_list_of_languages();
foreach ($languages as $key => $name) {
$key = str_replace('_', '-', str_replace('_utf8', '', $key));
$strlangarray .= '"'.$key.'": "'.$key.'",';
}
[/code]

Oh, that doesn't seem to work how I was expecting. I was expecting the [code] tags to be removed and the "foreach" to be highlighted in some way. Hmmm ... I wonder what I did wrong? thoughtful