我想指定的颜色{},()并[]在自定义颜色主题.这可能吗?
更新:这是来源.请注意该主题的开发状态; 在工作场所和家中使用都是不安全的.
;;; Color theme based on Moria for VIM.
(defun color-theme-moria ()
"A color theme based on Moria for VIM."
(interactive)
(color-theme-install
'(color-theme-moria
((foreground-color . "#000000") ;done
(cursor-color . "#ffffff")
(background-color . "#f0f0f0") ;done
(background-mode . light)) ;done
(default ((t (nil)))) ;done
(underline ((t (:underline t)))) ;done
(modeline ((t (:foreground "black" :background "#000000"))))
(modeline-buffer-id ((t (:foreground "red" :background "#0000ff"))))
(modeline-mousable ((t (:foreground "cyan" :background "#007080"))))
(modeline-mousable-minor-mode ((t (:foreground "cyan" :background "#007080")))) …Run Code Online (Sandbox Code Playgroud) 在vim中突出显示的CSS语法并不完全是最优的.例如:
div.special_class
Run Code Online (Sandbox Code Playgroud)
停止突出显示_.
是否有改进的荧光笔不会咬下划线?
更新:我正在使用VIM - Vi IMproved 7.1(2007年5月12日,2008年6月17日编译15:22:40)
我的css.vim的标题是:
" Vim syntax file
" Language: Cascading Style Sheets
" Maintainer: Claudio Fleiner <claudio@fleiner.com>
" URL: http://www.fleiner.com/vim/syntax/css.vim
" Last Change: 2006 Jun 19
" CSS2 by Nikolai Weibull
" Full CSS2, HTML4 support by Yeti
Run Code Online (Sandbox Code Playgroud) 我想绑定<C-return>.我试过global-set-key但它没用.然后我在" 全局覆盖Emacs中的键绑定 "中找到了一个建议,其中有人创建了一个自定义的次要模式,其中包括他们的键绑定,如下所示:
(define-key my-keys-minor-mode-map (kbd "<C-return>") 'insert-and-indent-line-above)
Run Code Online (Sandbox Code Playgroud)
位仍然不会取代当前的绑定.如果我这样做describe-key并按下C-Return它告诉我它必然会cua-set-rectangle-mark.
如何使此绑定取代所有其他绑定?
如何在Fancybox灯箱内加载Google地图?不在灯箱中时,地图加载正常.我只是在他们的网站上使用标准的Google地图代码:
<html>
<body>
<div id="map_canvas" style="width:100px; height:100px;"></div>
</body>
<script type="text/javascript">
function initialize() {
var myLatlng = new google.maps.LatLng(-36.8804280598958,
174.811848958333);
var myOptions = {
zoom: 13,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP,
panControl: false,
zoomControl: false,
scaleControl: true,
mapTypeControl: false,
scaleControl: false
}
var map = new
google.maps.Map(document.getElementById("map_canvas"), myOptions); }
function loadScript() {
var script = document.createElement("script");
script.type = "text/javascript";
script.src =
"http://maps.google.com/maps/api/js?sensor=false&callback=initialize";
document.body.appendChild(script); }
window.onload = loadScript;
</script>
</html>
Run Code Online (Sandbox Code Playgroud) 我正在创建一个自定义拖动助手(在jQuery中):
$('.dragme', element).draggable({
appendTo: 'body',
helper : custom_drag_helper,
opacity : 0.5
});
Run Code Online (Sandbox Code Playgroud)
我这样做是因为我想有时克隆并且有时会执行默认功能,即拖动原始元素.
function custom_drag_helper() {
if (/*criteria on when to move instead of clone */) {
return $(this); /* this is what helper: 'original' seems to do */
} else {
clone = $(this).clone(); /* this is what helper: 'clone' does */
return clone;
}
}
Run Code Online (Sandbox Code Playgroud)
但我无法使用原始功能.return clone()工作正常,但返回$(this)没有任何乐趣.
emacs ×2
dot-emacs ×1
elisp ×1
fancybox ×1
google-maps ×1
javascript ×1
jquery ×1
lightbox ×1
vim ×1