How to embed images?

Mar 24, 2011 at 8:01 PM

Hi folks, I've hunted around  online and in this forum but I still can't figure out how to embed an image in my XML documentation. I tried the usual "<img source = ..." thing but that didn't work. Could someone give some brief instructions or maybe point to a little step-by-step tutorial on how to do this? I'm using SHFB v1.9.1.0. Thank you very much in advance!



Mar 24, 2011 at 8:39 PM

Using the <img> element is the correct way to do it but the attribute is "src" rather than "source".  You also need a "../" relative path in front of the image name so that it can find the image.  The image should be added to the SHFB project with its BuildAction property set to Content.  There's a question in the SHFB FAQ topic that covers how to do this (How can I embed an image in a namespace, type, or member's help topic?).