IntelliPromt: Extra html tags added

SyntaxEditor for Windows Forms Forum

Posted 14 years ago by Radjesh Klauke - Mr., X-impress
Avatar
Ola,

I have added all the HTML5 tags and Doctypes into the memberslist of the HTML-OnSyntaxEditorTriggerActivated. Do you want it?

Comments (11)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Sure, we'd be happy to update our sample with the HTML5 tags. Thanks!


Actipro Software Support

Posted 14 years ago by Radjesh Klauke - Mr., X-impress
Avatar
These are the tags, HTML5 tags included.

memberList.Add(New IntelliPromptMemberListItem("a", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("acronym", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("address", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("applet", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("area", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("audio", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("b", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("base", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("basefont", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("bdo", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("bgsound", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("big", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("blockquote", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("body", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("br", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("button", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("caption", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("canvas", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("center", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("cite", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("code", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("col", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("colgroup", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("command", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("datalist", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("dd", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("del", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("details", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("dfn", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("dir", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("div", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("dl", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("dt", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("em", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("embed", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("fieldset", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("figcaption", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("figure", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("font", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("footer", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("form", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("frame", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("frameset", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("h1", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("h2", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("h3", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("h4", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("h5", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("h6", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("head", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("header", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("hr", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("html", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("i", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("iframe", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("img", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("input", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("ins", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("isindex", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("kbd", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("keygen", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("label", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("legend", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("li", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("link", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("listing", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("map", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("mark", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("marquee", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("map", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("menu", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("meta", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("meter", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("nav", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("noframes", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("noscript", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("object", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("ol", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("optgroup", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("option", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("output", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("p", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("param", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("plaintext", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("pre", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("progress", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("q", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("rp", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("rt", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("ruby", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("s", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("samp", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("script", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("select", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("small", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("source", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("span", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("strike", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("strong", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("style", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("sub", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("summary", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("sup", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("table", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("tbody", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("td", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("textarea", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("tfoot", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("th", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("thead", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("time", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("title", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("tr", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("tt", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("u", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("ul", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("var", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("video", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("xml", imageIndex))
memberList.Add(New IntelliPromptMemberListItem("xmp", imageIndex))
[Modified at 03/31/2011 01:34 PM]
Posted 14 years ago by Radjesh Klauke - Mr., X-impress
Avatar
Is there a way to change the icon of the html5-tags? It refers to the imageIndex, that's all I could figure out.
Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes, you can set a different image list onto the memberList.ImageList property and then change the image index however you need to point into that.


Actipro Software Support

Posted 14 years ago by Radjesh Klauke - Mr., X-impress
Avatar
Hmmmm... I added an imagelist to my form and some images:

Dim _blue As Integer = CInt(frm_main.intelli_icons.Images.Item(0).ToString)

doesn't work: Can't convert images to Integer.

How does it work?
Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
ImageList is a native WinForms component. You can look at Microsoft's documentation on how to use it.

Our editor.IntelliPrompt.MemberList.ImageList property can be set to any ImageList instance and the member list items can then refrence images in that ImageList by their index.


Actipro Software Support

Posted 14 years ago by Radjesh Klauke - Mr., X-impress
Avatar
Hmm... tried this in the HtmlDynamicSyntaxLanguage.vb:
' Set IntelliPrompt ImageList
memberList.ImageList = frm_test.intelli_icons
Dim _blue As Integer = CInt(frm_main.intelli_icons.Images.IndexOfKey(1))
example: memberList.Add(New IntelliPromptMemberListItem("a", _blue))

When I try to use it I get the error:
InvalidArgument=Value of '45' is not valid for 'index'.
Parameter name: index
Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Are you sure the memberList.ImageList property isn't being set to some other value in between where you set up the member list and when you show it? It sounds like something is setting it to another ImageList that doesn't have that many images.

Note that our default code for the member list had this:
memberList.ImageList = SyntaxEditor.ReflectionImageList;
So be sure you don't still have that in there. It should work otherwise. If you are seeing differently then please build a new simple sample project that shows the issue and email it to us.


Actipro Software Support

Posted 14 years ago by Radjesh Klauke - Mr., X-impress
Avatar
Okay, here's my testApp: http://www.mediafire.com/?f8nff6bhhptd1di
Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
You had this line:
memberList.Add(New IntelliPromptMemberListItem("<!-- -->", CInt(ActiproSoftware.Products.SyntaxEditor.IconResource.XmlComment), Nothing, "!-- ", " -->"))
So the image index you pass there is 45 but your custom ImageList only has 5 images in it. You need to change that image index.


Actipro Software Support

Posted 14 years ago by Radjesh Klauke - Mr., X-impress
Avatar
Now that was stupid. Why didn't I see that. Thanks.
The latest build of this product (v24.1.1) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.