# Bug: linked code snippet, syntax highlighting

**URL:** <https://forum.opencv.org/t/bug-linked-code-snippet-syntax-highlighting/785>\
**Category:** Site Feedback\
**Created:** [January 11, 2021, 10:19am UTC](https://forum.opencv.org/t/bug-linked-code-snippet-syntax-highlighting/785 "2021-01-11T10:19:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [January 11, 2021, 10:19am UTC](https://forum.opencv.org/t/bug-linked-code-snippet-syntax-highlighting/785/1 "2021-01-11T10:19:28Z")

</div>

have a look:  
[![image](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/1X/440c3edfcc682dc45222a4ba10f68c4d53847ae6.png)](https://forum.opencv.org/t/how-to-prove-the-convergence-of-iterative-algorithm-in-cvundistortpointsinternal/773/4)

the syntax highlighting thinks that a single-line comment spans multiple lines.

must be a bug in discourse, or whatever syntax-highlights those cards, because the same code inline highlights correctly:

```auto
if (icdist < 0) // test: undistortPoints.regression_14583
{
    x = (u - cx)*ifx;
    y = (v - cy)*ify;
    break;
}

```
