{"action":"created","issue":{"url":"https://api.github.com/repos/dschaefer/lang/issues/2","labels_url":"https://api.github.com/repos/dschaefer/lang/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/dschaefer/lang/issues/2/comments","events_url":"https://api.github.com/repos/dschaefer/lang/issues/2/events","html_url":"https://github.com/dschaefer/lang/issues/2","id":89750489,"number":2,"title":"Support for multiple languages in file","user":{"login":"zulus","id":549039,"avatar_url":"https://avatars.githubusercontent.com/u/549039?v=3","gravatar_id":"","url":"https://api.github.com/users/zulus","html_url":"https://github.com/zulus","followers_url":"https://api.github.com/users/zulus/followers","following_url":"https://api.github.com/users/zulus/following{/other_user}","gists_url":"https://api.github.com/users/zulus/gists{/gist_id}","starred_url":"https://api.github.com/users/zulus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zulus/subscriptions","organizations_url":"https://api.github.com/users/zulus/orgs","repos_url":"https://api.github.com/users/zulus/repos","events_url":"https://api.github.com/users/zulus/events{/privacy}","received_events_url":"https://api.github.com/users/zulus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-20T10:26:04Z","updated_at":"2015-06-29T21:30:48Z","closed_at":null,"body":" Have you plan to support multiple languages in file? Important for WEB.  Examples:\r\nhtml file, possible mixins:\r\n* javascript\r\n* css\r\n\r\nant xml file, possible mixins:\r\n* javascript\r\n* ruby\r\n* what ever jvm language\r\n\r\njava. possible mixins:\r\n* SQL\r\n* HQL\r\n\r\nOff course always should be main content type (html, xml,php, java), and ability to report embedded. "},"comment":{"url":"https://api.github.com/repos/dschaefer/lang/issues/comments/116851589","html_url":"https://github.com/dschaefer/lang/issues/2#issuecomment-116851589","issue_url":"https://api.github.com/repos/dschaefer/lang/issues/2","id":116851589,"user":{"login":"zulus","id":549039,"avatar_url":"https://avatars.githubusercontent.com/u/549039?v=3","gravatar_id":"","url":"https://api.github.com/users/zulus","html_url":"https://github.com/zulus","followers_url":"https://api.github.com/users/zulus/followers","following_url":"https://api.github.com/users/zulus/following{/other_user}","gists_url":"https://api.github.com/users/zulus/gists{/gist_id}","starred_url":"https://api.github.com/users/zulus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zulus/subscriptions","organizations_url":"https://api.github.com/users/zulus/orgs","repos_url":"https://api.github.com/users/zulus/repos","events_url":"https://api.github.com/users/zulus/events{/privacy}","received_events_url":"https://api.github.com/users/zulus/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T21:30:48Z","updated_at":"2015-06-29T21:30:48Z","body":"This can be done if you know where should be injected (like css/javascript in html/xml). But what with languages that can be anywhere:\r\n\r\n1. Tamplate languages like PHP/JSP which can be injected anywhere (php:<?php ?>; twig: {{ $varname }} ). They always have START sequence, and sometimes END sequence.\r\n2. SQL/HQL/HTML in string literal, it's not always simple to detect them.\r\n\r\nI thinking about extendable highlighter/parser/model since my first day with eclipse text editor :P"}}