it doesn't work unless you specify 'pascal' in code combo-box; so old posts in forum wont be highlighted; also new posts when user don't specify code dialect (mostly will be posts from newbie and quick posts).

suggestion: admin, make it default to pascal even when code dialect is not selected.

Ah.... I never use the buttons for highlighting, and from other/previous forums I'm used to write [ code=pascal]

I''l change the default to pascal

Logged

//--{$I stdsig.inc}//-I still can't read someones mind//-Bugs reported here will be forgotten. Use the bug tracker

Ah.... I never use the buttons for highlighting, and from other/previous forums I'm used to write [ code=pascal]

I''l change the default to pascal

what I meant to say is since this forum uses pascal as the main language the highlighter should assume a pascal code for all code tags unless specified, which means whenever he finds {code}{/code} he should handle it as {code=pascal}{/code}. this will make older posts highlighted and remove any inconsistent between old and new posts in the same thread like this onehttp://forum.lazarus.freepascal.org/index.php/topic,29822.msg189012.html#msg189012 (image attached)

on an other note, an option to choose the highlighter theme would be appreciated.

But it still has an issue in Internet explorer. IE does copy the entire code without any linebreaks. And it includes the line numbers.Chrome and Firefox do behave better. (Firefox adds empty lines)

I did not find any setting to fix this (and I have no access to patch/modify the modules code).

Removing the line numbers IE would still copy all in one line.But then all browsers will start wrapping long code lines, and that is making the code less readable. (Actually Firefox is the only one that does not wrap)

Also the line numbers might have been useful as reference.

And it is possible to do [ code=pascal,5 ] to highlight a line (or pascal,5,8)