<div dir="ltr"><div><div><div>Hi all, <br><br></div>Does anyone know how to properly embed erlang code examples inside e @doc tag ?<br><br></div>For example, I have something like:<br><br>%% @doc Mongo Query.<br></div>%% Answer example:<br><div>%% <code><br>%%      [<br>%%       {<<"client">>, <<"ClientOne">>},<br>%%       {<<"client-dir">>, <<"/dir/path">>}<br>%%      ]<br>%% </code><br>%% @end<br><br>I run edoc using  :<br>erl -pa ebin/ -noshell\<br>    -eval 'edoc:application(app_name, ".", [{source_path, ["/full/source/path"]}]), init:stop().'<br><br></div><div>And I get this:<br></div><div>2991- fatal: {invalid_name,"<\"clie"}<br>/full/source/path/module.erl, function get_clients_dirs/0: at line 156: error in XML parser: {fatal,{{invalid_name,"<\"clie"},<br>                             {file,file_name_unknown},<br>                             {line,159},<br>                             {col,11}}}.<br>edoc: skipping source file '/full/source/path/module.erl': {'EXIT',error}.<br>edoc: error in doclet 'edoc_doclet': {'EXIT',error}.<br>{"init terminating in do_boot",error}<br><br></div><div>If you have any ideas on how I can generate this properly, I'll be gratefull.<br></div><div>Costin-Tiberiu Radu,<br><br></div><div><br></div></div>