{"action":"created","issue":{"url":"https://api.github.com/repos/fxbois/web-mode/issues/587","labels_url":"https://api.github.com/repos/fxbois/web-mode/issues/587/labels{/name}","comments_url":"https://api.github.com/repos/fxbois/web-mode/issues/587/comments","events_url":"https://api.github.com/repos/fxbois/web-mode/issues/587/events","html_url":"https://github.com/fxbois/web-mode/issues/587","id":107198582,"number":587,"title":"web-mode highlight is not be applied when copy code in.","user":{"login":"zw963","id":549126,"avatar_url":"https://avatars.githubusercontent.com/u/549126?v=3","gravatar_id":"","url":"https://api.github.com/users/zw963","html_url":"https://github.com/zw963","followers_url":"https://api.github.com/users/zw963/followers","following_url":"https://api.github.com/users/zw963/following{/other_user}","gists_url":"https://api.github.com/users/zw963/gists{/gist_id}","starred_url":"https://api.github.com/users/zw963/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zw963/subscriptions","organizations_url":"https://api.github.com/users/zw963/orgs","repos_url":"https://api.github.com/users/zw963/repos","events_url":"https://api.github.com/users/zw963/events{/privacy}","received_events_url":"https://api.github.com/users/zw963/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-09-18T13:03:59Z","updated_at":"2015-09-20T05:51:35Z","closed_at":"2015-09-19T07:30:26Z","body":"I found web-mode is not rendered inner tag when copy html code in current buffer.\r\nit seem like just render the first line and the last line in some case.\r\ne.g. following only first and last line is highlight.\r\n```html\r\n    <div class=\"modal fade\" id=\"myModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\"> <= \r\n      <div class=\"modal-dialog\" role=\"document\">\r\n        <div class=\"modal-content\">\r\n          <div class=\"modal-header\">\r\n            <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>\r\n            <h4 class=\"modal-title\" id=\"myModalLabel\">Modal title</h4>\r\n          </div>\r\n          <div class=\"modal-body\">\r\n            ...\r\n          </div>\r\n          <div class=\"modal-footer\">\r\n            <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Close</button>\r\n            <button type=\"button\" class=\"btn btn-primary\">Save changes</button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n```\r\nthough when editing buffer,  will correct highlight the editing tags.\r\n\r\nis this a bug?\r\n\r\nif this not bug, is exist a lisp function to force render right now ?\r\n\r\nThanks.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fxbois/web-mode/issues/comments/141751782","html_url":"https://github.com/fxbois/web-mode/issues/587#issuecomment-141751782","issue_url":"https://api.github.com/repos/fxbois/web-mode/issues/587","id":141751782,"user":{"login":"zw963","id":549126,"avatar_url":"https://avatars.githubusercontent.com/u/549126?v=3","gravatar_id":"","url":"https://api.github.com/users/zw963","html_url":"https://github.com/zw963","followers_url":"https://api.github.com/users/zw963/followers","following_url":"https://api.github.com/users/zw963/following{/other_user}","gists_url":"https://api.github.com/users/zw963/gists{/gist_id}","starred_url":"https://api.github.com/users/zw963/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zw963/subscriptions","organizations_url":"https://api.github.com/users/zw963/orgs","repos_url":"https://api.github.com/users/zw963/repos","events_url":"https://api.github.com/users/zw963/events{/privacy}","received_events_url":"https://api.github.com/users/zw963/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T05:51:35Z","updated_at":"2015-09-20T05:51:35Z","body":">> I auto indent on paste \r\n\r\nI remove all my personal emacs config, only with following:\r\n\r\n```el\r\n(require 'web-mode)\r\n(setq web-mode-script-padding 2)\r\n(setq web-mode-enable-auto-pairing t)\r\n(setq web-mode-markup-indent-offset 2)\r\n(setq web-mode-css-indent-offset 2)\r\n(setq web-mode-code-indent-offset 2)\r\n(setq web-mode-enable-current-element-highlight t)\r\n(setq web-mode-enable-current-column-highlight t)\r\n(setq web-mode-enable-comment-keywords t)\r\n;; use server comment, not html comment.\r\n;; (setq web-mode-comment-style 2)\r\n(setq web-mode-enable-css-colorization t)\r\n(setq web-mode-ac-sources-alist\r\n      '((\"css\" . (ac-source-css-property))\r\n        (\"html\" . (ac-source-words-in-buffer ac-source-abbrev))))\r\n\r\n\r\n(add-to-list 'auto-mode-alist '(\"\\\\.html?\\\\'\" . web-mode))\r\n(add-to-list 'auto-mode-alist '(\"\\\\.phtml\\\\'\" . web-mode))\r\n(add-to-list 'auto-mode-alist '(\"\\\\.tpl\\\\.php\\\\'\" . web-mode))\r\n(add-to-list 'auto-mode-alist '(\"\\\\.[agj]sp\\\\'\" . web-mode))\r\n(add-to-list 'auto-mode-alist '(\"\\\\.as[cp]x\\\\'\" . web-mode))\r\n(add-to-list 'auto-mode-alist '(\"\\\\.erb\\\\'\" . web-mode))\r\n(add-to-list 'auto-mode-alist '(\"\\\\.mustache\\\\'\" . web-mode))\r\n(add-to-list 'auto-mode-alist '(\"\\\\.djhtml\\\\'\" . web-mode))\r\n(setq web-mode-engines-alist '(\r\n                               (\"erb\" . \"\\\\.erb\\\\|\\\\.r?html?\\\\'\"))\r\n      )\r\n```\r\n\r\nBut , it not auto-indent when I paste, where I have mistaken?\r\nHow can I `auto indent on paste ` ?\r\n\r\nThanks."}}