It is not possible to do something like this for:
However, it is perfectly possible to do this for the ouput of
which is more elegant, but it is a bit tricky. Here is how.
The idea is to directly use html tags inside your documentation. For this you have to open the help2html function
and between lines 69 and 70 add
helpstr = regexprep(helpstr,'<','<');
helpstr = regexprep(helpstr,'>','>');
Which will ensure that html tags can be used in your help. Then, use the span tag to define the color:
function myfunc = afunction()
For the following result:
Hope this helps.
I thought of a better solution. First, you can copy the help2html file and its 'private' directory above in the Matlab path to overload it, which is safer, second, instead of adding the lines I suggested, just comment line 25