Bug in highlighting of source code. It swallows and < > tags

Please report bugs here!

Moderator: Thorsten

Post Reply
Seikilos
Posts: 4
Joined: Mon Jan 18, 2010 9:24 am

Bug in highlighting of source code. It swallows and < > tags

Post by Seikilos »

the source code insertion allows me to use a c++ highlighter but it does not work well.
I have some definition like

Code: Select all

T<std::string> myClass;
which I paste into the source code field and the result is that the tag <std::string> gets swallowed.

when I add this code:

Code: Select all

spirit::qi::rule<std::string::const_iterator , boost::fusion::vector<double, std::string , double, std::string>()> _track_width;
It cut it off and leave me with spirit::qi::rule()> _track_width;
this is highly unusable in my view
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Bug in highlighting of source code. It swallows and < > tags

Post by Thorsten »

Hi,

which version of phpMyFAQ do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Seikilos
Posts: 4
Joined: Mon Jan 18, 2010 9:24 am

Re: Bug in highlighting of source code. It swallows and < > tags

Post by Seikilos »

Sorry, forgot to mention: 2.5.5
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Bug in highlighting of source code. It swallows and < > tags

Post by Thorsten »

Hi,

I tested it on 2.5.6 and 2.6.0. I could not reproduce your issue. As you can see in our changelog, we updated a lot of syntax highlighting components in 2.5.6. You should update to 2.5.6 and try it again.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Seikilos
Posts: 4
Joined: Mon Jan 18, 2010 9:24 am

Re: Bug in highlighting of source code. It swallows and < > tags

Post by Seikilos »

Now, that was a weird one. I made an upgrade to 2.6.0 with all backups and stuff described in the docs. Now I get a javascript error "SyntaxHighlighter is not defined"
What about that? Did I forget to delete a file or sth?

Edit before that Firefox Web-Developer throws me css warning:

Code: Select all

Selector expected. Rulebase ignored due to invalid selector
shCore.css
Firefox 3.5.7

Thementioned line is background:

Code: Select all

.syntaxhighlighter.printing .line.highlighted.alt2 .content,
{
	background: none !important;
}
Post Reply