{"action":"created","issue":{"url":"https://api.github.com/repos/jacobslusser/ScintillaNET/issues/242","repository_url":"https://api.github.com/repos/jacobslusser/ScintillaNET","labels_url":"https://api.github.com/repos/jacobslusser/ScintillaNET/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/jacobslusser/ScintillaNET/issues/242/comments","events_url":"https://api.github.com/repos/jacobslusser/ScintillaNET/issues/242/events","html_url":"https://github.com/jacobslusser/ScintillaNET/issues/242","id":157545502,"number":242,"title":"Function for setting style to lexer","user":{"login":"vinodvinu","id":8840907,"avatar_url":"https://avatars.githubusercontent.com/u/8840907?v=3","gravatar_id":"","url":"https://api.github.com/users/vinodvinu","html_url":"https://github.com/vinodvinu","followers_url":"https://api.github.com/users/vinodvinu/followers","following_url":"https://api.github.com/users/vinodvinu/following{/other_user}","gists_url":"https://api.github.com/users/vinodvinu/gists{/gist_id}","starred_url":"https://api.github.com/users/vinodvinu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinodvinu/subscriptions","organizations_url":"https://api.github.com/users/vinodvinu/orgs","repos_url":"https://api.github.com/users/vinodvinu/repos","events_url":"https://api.github.com/users/vinodvinu/events{/privacy}","received_events_url":"https://api.github.com/users/vinodvinu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-30T19:01:33Z","updated_at":"2016-05-30T19:27:21Z","closed_at":null,"body":"Hi @jacobslusser ,\r\nI have wrote a function for setting styles for scintilla. Actually, i was translated this function from an AutoIt library. This is the function.\r\n`\r\nPublic Sub SetStyle(ByVal Style As Integer, _\r\n                        ByRef ForeColor As IntPtr, _\r\n                        ByRef BackColor As IntPtr, _\r\n                              Optional ByVal Size As Integer = 0, _\r\n                              Optional ByVal FontName As Long = 0)\r\n\r\n        Dim sciHwnd As IntPtr = Form1.Scintilla1.Handle\r\n        SendMessage(sciHwnd, StyleFor, Style, ForeColor)\r\n        SendMessage(sciHwnd, StyleBack, Style, BackColor)\r\n        If Size > 1 Then\r\n            SendMessage(sciHwnd, StyleSetSize, Style, Size)\r\n        End If\r\n        If FontName <> 0 Then\r\n            SendMessage(sciHwnd, StyleSetFont, Style, FontName)\r\n        End If\r\n    End Sub\r\n`\r\nI have used this like this way\r\n`Dim KeyWordForClr As IntPtr = &HFF0000\r\nPublic Const Au3Keyword = 5\r\n        Dim KeyWordBackClr As IntPtr = &HFFFFFF`\r\n`\r\n\r\n\r\n\r\n        Additionals.SetStyle(Au3Keyword, KeyWordForClr, KeyWordBackClr)`\r\nSo far so good. THis function worked and i can change the keyword's color to blue. Keywords are setup with this code\r\n`Scintilla1.Lexing.SetKeywords(0, KeyList)`\r\nBut, in the above function, I can't include the font name. Because, in AutoIt, the function receives the lParam as a string. But in vb.net, i can only pass a long value as lParam. How to fix this problem ? any idea ?\r\n"},"comment":{"url":"https://api.github.com/repos/jacobslusser/ScintillaNET/issues/comments/222544357","html_url":"https://github.com/jacobslusser/ScintillaNET/issues/242#issuecomment-222544357","issue_url":"https://api.github.com/repos/jacobslusser/ScintillaNET/issues/242","id":222544357,"user":{"login":"JohnyMac","id":8184424,"avatar_url":"https://avatars.githubusercontent.com/u/8184424?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnyMac","html_url":"https://github.com/JohnyMac","followers_url":"https://api.github.com/users/JohnyMac/followers","following_url":"https://api.github.com/users/JohnyMac/following{/other_user}","gists_url":"https://api.github.com/users/JohnyMac/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnyMac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnyMac/subscriptions","organizations_url":"https://api.github.com/users/JohnyMac/orgs","repos_url":"https://api.github.com/users/JohnyMac/repos","events_url":"https://api.github.com/users/JohnyMac/events{/privacy}","received_events_url":"https://api.github.com/users/JohnyMac/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T19:27:21Z","updated_at":"2016-05-30T19:27:21Z","body":"I don't understand why do you want to that specificly since all that is already wrapped.\r\nYou can just do something LIKE this: \r\n```\r\nScintilla.Styles(Styles.Comment).ForeColor = Colors.Green\r\n```\r\n\r\nAnyways, You should use this for direct messages: \r\nhttps://github.com/jacobslusser/ScintillaNET/wiki/Direct-Messages"}}
{"actor":{"display_login":"JohnyMac"}}