This is a pseudo doxygen file to test Kate's doxygen syntax highlighting. Normal text, no HL. =================== a multiline comment may begin with a /*! */, too. That should work, because it is the same "entrance rule". popping tests: /** multiline */ end of doxygen HL mode /*! multiline */ end of doxygen HL mode //! singleline, where */ should be ignored! still doxygen HL mode /// singleline, where */ should be ignored! still doxygen HL mode ///< singleline, where */ should be ignored! still doxygen HL mode begin and end immediately: /********/ actually no doxygen comment - used for "info boxes" :) /**/ <-- it really works --- end of doxygen HL mode /*!*/ end of doxygen HL mode /** \code rest of line is normal comment HL */ end of doxygen HL mode /** \code rest of line is normal comment HL * comment HL mode */ end of doxygen HL mode /** \file aword rest of line is normal comment HL */ end of doxygen HL mode /** \file */aword <-- pop! no doxygen HL mode /** \file aword rest of line is normal comment HL * comment HL mode */ end of doxygen HL mode /** \brief A short description */ end of doxygen HL mode /** \brief */A <-- pop! end of doxygen HL mode /** \brief A short description * comment HL mode */ end of doxygen HL mode /** \page aword rest of line is string */ end of doxygen HL mode /** \page */aword <-- pop! end of doxygen HL mode /** \page aword rest of line is string * comment HL mode */ end of doxygen HL mode /** \image aword aword rest of line is normal HL */ end of doxygen HL mode /** \image aword */aword <-- pop! end of doxygen HL mode /** \image */aword aword <-- pop! end of doxygen HL mode /** \image aword aword rest of line is normal HL * comment HL mode */ end of doxygen HL mode Tests for HTML tags in doxygen HL mode: ======================================= /** */ end of doxygen HL mode /** end of doxygen HL mode /** end of doxygen HL mode /** end of doxygen HL mode /** end of doxygen HL mode /** end of doxygen HL mode /** end of doxygen HL mode /** end of doxygen HL mode /** end of doxygen HL mode /** end of doxygen HL mode /** */ end of doxygen HL mode /** end of doxygen HL mode /** end of doxygen HL mode /** end of doxygen HL mode /** end of doxygen HL mode /** end of doxygen HL mode /** end of doxygen HL mode /** end of doxygen HL mode /** end of doxygen HL mode /** end of doxygen HL mode /** <*/a href="blubb"> end of doxygen HL mode //! */ stay in doygen HL mode //! stay in doygen HL mode //! stay in doygen HL mode //! stay in doygen HL mode //! stay in doygen HL mode //! stay in doygen HL mode //! */ stay in doygen HL mode //! stay in doygen HL mode //! stay in doygen HL mode //! stay in doygen HL mode //! stay in doygen HL mode //! stay in doygen HL mode //! stay in doygen HL mode //! stay in doygen HL mode //! stay in doygen HL mode //! stay in doygen HL mode //! <*/a href="blubb"> stay in doygen HL mode //! stay in doygen HL /** \code rest of line is normal comment HL */ end of doxygen HL mode /** \code rest of end of doxygen HL mode /** \code rest of end of doxygen HL mode /** \code rest of end of doxygen HL mode /** \code rest of end of doxygen HL mode /** \code rest of end of doxygen HL mode /** \code rest of end of doxygen HL mode /** \code rest of end of doxygen HL mode /** \code rest <*/a href="blubb"> of end of doxygen HL mode /** \code rest of line is normal comment HL * comment HL mode text */ end of doxygen HL mode /** \file aword rest of line is normal comment HL */ end of doxygen HL mode /** \file awo*/rd end of doxygen HL mode /** \file aword end of doxygen HL mode /** \file awo<*/html_should_be_ignored_here>rd end of doxygen HL mode /** \file a*/word end of doxygen HL mode /** \file aword rest of line is normal comment HL * comment HL mode */ end of doxygen HL mode /** \brief A short of description */ end of doxygen HL mode /** \brief A short of end of doxygen HL mode /** \brief A short of end of doxygen HL mode /** \brief A short of end of doxygen HL mode /** \brief A short of end of doxygen HL mode /** \brief A short of end of doxygen HL mode /** \brief A short of <*//a href='blubb'> end of doxygen HL mode /** \brief A short of end of doxygen HL mode /** \brief A short of end of doxygen HL mode /** \brief A short of end of doxygen HL mode /** \brief A short of end of doxygen HL mode /** \brief A short of end of doxygen HL mode /** \brief A short of end of doxygen HL mode /** \brief A short of description * comment HL mode */ end of doxygen HL mode /** \page aword A short of description */ end of doxygen HL mode /** \page aword A short of end of doxygen HL mode /** \page aword A short of end of doxygen HL mode /** \page aword A short of end of doxygen HL mode /** \page aword A short of end of doxygen HL mode /** \page aword A short of end of doxygen HL mode /** \page aword A short of <*//a href='blubb'> end of doxygen HL mode /** \page aword A short of end of doxygen HL mode /** \page aword A short of end of doxygen HL mode /** \page aword A short of end of doxygen HL mode /** \page aword A short of end of doxygen HL mode /** \page aword A short of end of doxygen HL mode /** \page aword A short of end of doxygen HL mode /** \page aword A short <*/a href="blubb"> of end of doxygen HL mode /** \page aword A shor*/t of end of doxygen HL mode /** \page awor*/d A short of end of doxygen HL mode /** \page */aword A short of end of doxygen HL mode /** \page aword A short of description * comment HL mode */ end of doxygen HL mode /** \image aword aword rest of line is normal HL */ end of doxygen HL mode /** \image aword aword rest of line is*/ end of doxygen HL mode /** \image aword aword*/ end of doxygen HL mode /** \image aword aw*/ord end of doxygen HL mode /** \image aword */aword end of doxygen HL mode /** \image aword*/ end of doxygen HL mode /** \image awo*/rd end of doxygen HL mode /** \image */aword end of doxygen HL mode /** \ima*/ge end of doxygen HL mode /** \image aword aword rest of line is normal HL * comment HL mode */ end of doxygen HL mode Some further tests for singlelinecomments (* / should not pop!) =============================================================== /// a singlelinecommment blubb blubb */. stay in doxygen HL mode /// \code a singlelinecommment blubb b*/lubb. stay in doxygen HL mode end of doxygen HL mode /// \endcode /// \code*/ a singlelinecommment blubb blubb. stay in doxygen HL mode end of doxygen HL mode /// \code a multilinecommment blubb blubb /// blubb blubb /// \endcode /// \brief a descriptive text (string) stay in doxygen HL mode /// \brief a descriptive text (string)*/ description should go on here /// \brief a descriptive text */(string) description should go on here /// \brief */a descriptive text (string) description should go on here /// \ref aword a descriptive text (string) */ description should go on here /// \ref aword a descriptive text (str*/ing) description should go on here /// \ref aword a des*/criptive text (string) description should go on here /// \ref aword*/ a descriptive text (string) description should go on here /// \ref aw*/ord a descriptive text (string) description should go on here /// \ref */aword a descriptive text (string) description should go on here HTML comment tests: =================== //! \ref word descriptive text (string) normal HL mode. //! \ref w descriptive text (string) /** \ref word descriptive text (string) normal HL mode. /** \ref w * normal doxygen HL mode. */ And final tests for a word: a single char: =========================================== //! \ref word descriptive text (string) //! \ref w descriptive text (string) //! \image word1 word2 b descriptive text (string) //! \image a word b descriptive text (string) //! \brief A b c d e description should go on here //! \file word rest of line is normal comment HL //! \file a word rest of line is normal comment HL no doxygen HL mode here. == END OF TESTFILE ==