Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After clicking on "more" to see a long question or answers, syntax highlighting of code blocks becomes disabled #854

Open
cosmicog opened this issue Jan 9, 2020 · 0 comments

Comments

@cosmicog
Copy link

cosmicog commented Jan 9, 2020

This is an issue that I see for a long time. I'm surprised that I couldn't find any related issues(maybe there is).

Basically, after clicking more to see the whole long question, syntax highlighting is being disabled like this:

try 
{
    std::vector<int> vec{3, 4, 3, 1};
    int i{vec.at(4)};
}
catch (std::out_of_range &e) 
{
    std::cerr << "Accessing a non-existent element: " << e.what() << '\n';
}

becomes this:

try 
{
    std::vector<int> vec{3, 4, 3, 1};
    int i{vec.at(4)};
}
catch (std::out_of_range &e) 
{
    std::cerr << "Accessing a non-existent element: " << e.what() << '\n';
}

For example: Gazebo controller spawner warning - ROS Answers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant