<div dir="ltr">Hi!<div><br></div><div>Since the doc is HTML, I think you need use '<' instead of '<' in the code snippet. </div><div><br></div><div>regards,</div><div>Vlad</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 7, 2015 at 9:57 AM, CT Radu <span dir="ltr"><<a href="mailto:ct.radu.001@gmail.com" target="_blank">ct.radu.001@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>