What does this do to performance? (Memory/CPU)
Plain documentation is stored in additional map, so memory isn't wasted when token haven't got documentation.
Html is generated on the fly from tokens generated (and cached) in CodeCompletion::CodeComplete, there aren't additional searches in token tree. Most of the times token index is passed in link's href, so it can be obtained from tree without search.
I second that.
And me too
But first I have to find out how create patch that adds files to repo.
Can you make the comment panel's background color different from the code editor's background?
currently, they are both white.
I forgot that default background color is white
I already added border. I think that colors of background, text and links should be customizable.
EDIT: it seems that click on the HTML link(in the comment panel) does not work.
Which exactly doesn't work? Can you try this code:
struct ThisLinkWorks{};
//! A test class.
/*!
A more elaborate class description.
*/
class Test
{
public:
//! An enum.
/*! More detailed enum description. */
enum TEnum {
TVal1 = 2, /*!< Enum value TVal1. */
TVal2, /*!< Enum value TVal2. */
TVal3 /*!< Enum value TVal3. */
}
//! Enum pointer.
/*! Details. */
*enumPtr,
//! Enum variable.
/*! Details. */
enumVar;
//! A constructor.
//! Constructing constructor of constructive Test class.
/*!
A more elaborate description of the constructor.
*/
Test();
//! A destructor.
/*!
A more elaborate description of the destructor.
*/
~Test();
//! A normal member taking two arguments and returning an <font color=red>integer</font> value.
/*!
\param a an integer argument.
\param s a constant character pointer.
\return The test results
\sa Test, ~Test, Test() testMeToo publicVar
*/
int testMe(int a, const char* s);
//! A pure virtual member.
/*!
\sa testMe()
\param c1 the first argument.
\param c2 the second argument.
*/
virtual void testMeToo(char c1, char c2) = 0;
//! A public variable.
/*!
Details.
*/
int publicVar;
//! A function variable.
/*!
Details.
*/
int (*handler)(int a, int b);
ThisLinkWorks function4(ThisLinkDoesntWork tldw);
};
PS. Can also try to implement methods using codecompletion?