{"action":"created","issue":{"url":"https://api.github.com/repos/jacobslusser/ScintillaNET/issues/14","labels_url":"https://api.github.com/repos/jacobslusser/ScintillaNET/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/jacobslusser/ScintillaNET/issues/14/comments","events_url":"https://api.github.com/repos/jacobslusser/ScintillaNET/issues/14/events","html_url":"https://github.com/jacobslusser/ScintillaNET/issues/14","id":80574794,"number":14,"title":"The simplest way to activate a highlight syntax","user":{"login":"assismauro","id":2077520,"avatar_url":"https://avatars.githubusercontent.com/u/2077520?v=3","gravatar_id":"","url":"https://api.github.com/users/assismauro","html_url":"https://github.com/assismauro","followers_url":"https://api.github.com/users/assismauro/followers","following_url":"https://api.github.com/users/assismauro/following{/other_user}","gists_url":"https://api.github.com/users/assismauro/gists{/gist_id}","starred_url":"https://api.github.com/users/assismauro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assismauro/subscriptions","organizations_url":"https://api.github.com/users/assismauro/orgs","repos_url":"https://api.github.com/users/assismauro/repos","events_url":"https://api.github.com/users/assismauro/events{/privacy}","received_events_url":"https://api.github.com/users/assismauro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jacobslusser/ScintillaNET/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-25T15:42:31Z","updated_at":"2015-06-04T10:40:43Z","closed_at":null,"body":"Hi,\r\n\r\nIn older versions, it was necessary only to set:\r\n\r\nscintilla.ConfigurationManager.Language = \"python\";\r\n\r\nto have a nice python editor up and running.\r\n\r\nAs I moved to 3.3 version, initially I tryied to do:\r\n\r\nscintilla.Lexer = Lexer.Python;\r\n\r\nBut anything happened, that is, the editor didn´t show syntax highlighting.\r\n\r\nChecking README.md file, I saw an example showing how to configure a C# editor defining all features corresponding to Visual Studio-style editor.\r\n\r\nIt´s necessary to do those definitions for all languages? That is, there´s no way to define Scintilla as a Python, R or MSSQL only defining a property.\r\n\r\nIf so, could you find examples for those other languages?\r\n\r\nTks in advance,\r\n\r\nMauro Assis\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jacobslusser/ScintillaNET/issues/comments/108834852","html_url":"https://github.com/jacobslusser/ScintillaNET/issues/14#issuecomment-108834852","issue_url":"https://api.github.com/repos/jacobslusser/ScintillaNET/issues/14","id":108834852,"user":{"login":"glopesdev","id":5315880,"avatar_url":"https://avatars.githubusercontent.com/u/5315880?v=3","gravatar_id":"","url":"https://api.github.com/users/glopesdev","html_url":"https://github.com/glopesdev","followers_url":"https://api.github.com/users/glopesdev/followers","following_url":"https://api.github.com/users/glopesdev/following{/other_user}","gists_url":"https://api.github.com/users/glopesdev/gists{/gist_id}","starred_url":"https://api.github.com/users/glopesdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glopesdev/subscriptions","organizations_url":"https://api.github.com/users/glopesdev/orgs","repos_url":"https://api.github.com/users/glopesdev/repos","events_url":"https://api.github.com/users/glopesdev/events{/privacy}","received_events_url":"https://api.github.com/users/glopesdev/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T10:40:43Z","updated_at":"2015-06-04T10:40:43Z","body":"Hi all,\r\n\r\nI've just discovered ScintillaNET and I just find it amazing, great work!\r\nHowever, I have to echo the difficulties outlined in this question in how to set it up and running.\r\n\r\nI don't mind having to specify style colors and properties programmatically, but what I'm finding is that the style definitions don't match what I would expect from the Lexer.\r\n\r\nFor example:\r\nscintilla.Styles[Style.Python.Word].ForeColor = ColorTranslator.FromHtml(\"#0000ff\");\r\nscintilla.Styles[Style.Python.Word2].ForeColor = ColorTranslator.FromHtml(\"0000ff\");\r\n\r\nshould presumably set Python keywords to blue. However, for some reason these keywords are not in the lexer (e.g. def, import, class, etc, are all missing!). This is annoying because then it becomes necessary to add the keywords by hand.\r\n\r\nWhile it is definitely possible to work around this, I would expect the Lexer to already provide this information...\r\n\r\nAnyway, yes, complete examples for a couple of major languages would be nice. Also line numbers don't seem to show up and the horizontal bar is always there regardless of line width. I don't know if these are known issues or if I should start logging this into the bug tracker."}}