md_5
Well-known member
I am using the excellent Geshi highlighter by @digitalpoint, however many users are unaware that they can actually use Java and YAML syntax highlights. The solution to this is of course to add these to the dropdown menu by editing the template, simple enough.
However then we run into this code in bb_code_edit.js:
Quite simply, this prevents us from adding new code types without editing core javascript files by hand.
A more appropriate method would be:
Thanks
However then we run into this code in bb_code_edit.js:
Code:
switch ($('#redactor_code_type').val())
{
case 'html': tag = 'HTML'; break;
case 'php': tag = 'PHP'; break;
default: tag = 'CODE';
}
A more appropriate method would be:
Code:
tag = $('#redactor_code_type').val().toUpperCase()
Thanks
Upvote
0