Thank you for your time on this Se7en, and also for adding the 'Select' option - much appreciated.
The only (very minor) issue that I've noticed with GeShi is that when copying code from code blocks, an indentation of 4-spaces is added to the front of every line, except those with leading spaces, to which only 3-spaces are added (or 4 are added and 1 existing is removed).
For example, when copying your code from
Reply#17 to a code editor (Notepad++), I receive (using FF20.0.1):
const std::string trim(const std::string& pString, const std::string& pWhitespace = " \t") /*{{{*/
{
const size_t beginStr = pString.find_first_not_of(pWhitespace);
if (beginStr == std::string::npos)
// no content
return "";
const size_t endStr = pString.find_last_not_of(pWhitespace);
const size_t range = endStr - beginStr + 1;
return pString.substr(beginStr, range);
}
Note the extra 4 spaces of indentation on every line and removal of a leading space for the middle lines.
IE still copies the line numbers, but I guess this is unavoidable and simply how IE handles copying of HTML ordered lists.