热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

vimcolor

1File:dracula.vim2Maintainer:CrusoeXia(crusoexia)3URL:https:github.comcrusoexiavim-drac
  1 " File:       dracula.vim
  2 " Maintainer: Crusoe Xia (crusoexia)
  3 " URL:        https://github.com/crusoexia/vim-dracula
  4 " License:    MIT
  5 "
  6 " Configuration:
  7 "
  8 "   * Enable italic
  9 "
 10 "       let g:dracula_italic = 1
 11 
 12 " Initialisation
 13 " --------------
 14 
 15 if ! has("gui_running") && &t_Co <256
 16   finish
 17 endif
 18 
 19 if ! exists("g:dracula_italic")
 20     let g:dracula_italic = 0
 21 endif
 22 
 23 set background=dark
 24 hi clear
 25 
 26 if exists("syntax_on")
 27   syntax reset
 28 endif
 29 
 30 let colors_name = "dracula"
 31 
 32 " Palettes
 33 " --------
 34 
 35 if has("gui_running")
 36   let s:vmode      = "gui"
 37   let s:background = "#323342"
 38   let s:foreground = "#F2F2EC"
 39   let s:window     = "#7272A5"
 40   let s:linenr     = "#898A8D"
 41   let s:line       = "#3C3E54"
 42   let s:darkcolumn = "#2D2F3B"
 43   let s:selection  = "#54576A"
 44   let s:comment    = "#7283BF"
 45   let s:error      = "#5F0000"
 46  
 47   let s:pink       = "#FF79C6"
 48   let s:green      = "#50FA7B"
 49   let s:aqua       = "#8BE9FD"
 50   let s:yellow     = "#F1FA8C"
 51   let s:orange     = "#FFB86C"
 52   let s:purple     = "#BD93F9"
 53   let s:red        = "#FF5555"
 54 
 55   let s:addfg      = "#F8F8F2"
 56   let s:addbg      = "#468410"
 57   let s:delfg      = "#8B080B"
 58   let s:changefg   = "#F8F8F2"
 59   let s:changebg   = "#243A5F"
 60 else
 61   let s:vmode      = "cterm"
 62   let s:background = "235"
 63   let s:foreground = "231"
 64   let s:window     = "60"
 65   let s:linenr     = "240"
 66   let s:line       = "236"
 67   let s:darkcolumn = "234"
 68   let s:selection  = "238"
 69   let s:comment    = "61"
 70   let s:error      = "52"
 71  
 72   let s:pink       = "212"
 73   let s:green      = "84"
 74   let s:aqua       = "117"
 75   let s:yellow     = "228"
 76   let s:orange     = "215"
 77   let s:purple     = "141"
 78   let s:red        = "231"
 79 
 80   let s:addfg      = "231"
 81   let s:addbg      = "64"
 82   let s:delfg      = "88"
 83   let s:changefg   = "231"
 84   let s:changebg   = "23"
 85 endif
 86 
 87 " Formatting Options
 88 " ------------------
 89 
 90 let s:nOne= "NONE"
 91 let s:t_nOne= "NONE"
 92 let s:n      = "NONE"
 93 let s:c      = ",undercurl"
 94 let s:r      = ",reverse"
 95 let s:s      = ",standout"
 96 let s:b      = ",bold"
 97 let s:u      = ",underline"
 98 let s:i      = ",italic"
 99 
100 " Highlighting Primitives
101 " -----------------------
102 
103 exe "let s:bg_nOne= ‘ ".s:vmode."bg=".s:none      .""
104 exe "let s:bg_foreground = ‘ ".s:vmode."bg=".s:foreground.""
105 exe "let s:bg_background = ‘ ".s:vmode."bg=".s:background.""
106 exe "let s:bg_selection  = ‘ ".s:vmode."bg=".s:selection .""
107 exe "let s:bg_line       = ‘ ".s:vmode."bg=".s:line      .""
108 exe "let s:bg_linenr     = ‘ ".s:vmode."bg=".s:linenr    .""
109 exe "let s:bg_comment    = ‘ ".s:vmode."bg=".s:comment   .""
110 exe "let s:bg_red        = ‘ ".s:vmode."bg=".s:red       .""
111 exe "let s:bg_orange     = ‘ ".s:vmode."bg=".s:orange    .""
112 exe "let s:bg_yellow     = ‘ ".s:vmode."bg=".s:yellow    .""
113 exe "let s:bg_green      = ‘ ".s:vmode."bg=".s:green     .""
114 exe "let s:bg_aqua       = ‘ ".s:vmode."bg=".s:aqua      .""
115 exe "let s:bg_purple     = ‘ ".s:vmode."bg=".s:purple    .""
116 exe "let s:bg_pink       = ‘ ".s:vmode."bg=".s:pink      .""
117 exe "let s:bg_window     = ‘ ".s:vmode."bg=".s:window    .""
118 exe "let s:bg_darkcolumn = ‘ ".s:vmode."bg=".s:darkcolumn.""
119 exe "let s:bg_addbg      = ‘ ".s:vmode."bg=".s:addbg     .""
120 exe "let s:bg_addfg      = ‘ ".s:vmode."bg=".s:addfg     .""
121 exe "let s:bg_changebg   = ‘ ".s:vmode."bg=".s:changebg  .""
122 exe "let s:bg_changefg   = ‘ ".s:vmode."bg=".s:changefg  .""
123 exe "let s:bg_error      = ‘ ".s:vmode."bg=".s:error     .""
124 
125 exe "let s:fg_nOne= ‘ ".s:vmode."fg=".s:none      .""
126 exe "let s:fg_foreground = ‘ ".s:vmode."fg=".s:foreground.""
127 exe "let s:fg_background = ‘ ".s:vmode."fg=".s:background.""
128 exe "let s:fg_selection  = ‘ ".s:vmode."fg=".s:selection .""
129 exe "let s:fg_line       = ‘ ".s:vmode."fg=".s:line      .""
130 exe "let s:fg_linenr     = ‘ ".s:vmode."fg=".s:linenr    .""
131 exe "let s:fg_comment    = ‘ ".s:vmode."fg=".s:comment   .""
132 exe "let s:fg_red        = ‘ ".s:vmode."fg=".s:red       .""
133 exe "let s:fg_orange     = ‘ ".s:vmode."fg=".s:orange    .""
134 exe "let s:fg_yellow     = ‘ ".s:vmode."fg=".s:yellow    .""
135 exe "let s:fg_green      = ‘ ".s:vmode."fg=".s:green     .""
136 exe "let s:fg_aqua       = ‘ ".s:vmode."fg=".s:aqua      .""
137 exe "let s:fg_purple     = ‘ ".s:vmode."fg=".s:purple    .""
138 exe "let s:fg_pink       = ‘ ".s:vmode."fg=".s:pink      .""
139 exe "let s:fg_window     = ‘ ".s:vmode."fg=".s:window    .""
140 exe "let s:fg_darkcolumn = ‘ ".s:vmode."fg=".s:darkcolumn.""
141 exe "let s:fg_addbg      = ‘ ".s:vmode."fg=".s:addbg     .""
142 exe "let s:fg_addfg      = ‘ ".s:vmode."fg=".s:addfg     .""
143 exe "let s:fg_delfg      = ‘ ".s:vmode."fg=".s:delfg     .""
144 exe "let s:fg_changebg   = ‘ ".s:vmode."fg=".s:changebg  .""
145 exe "let s:fg_changefg   = ‘ ".s:vmode."fg=".s:changefg  .""
146 exe "let s:fg_error      = ‘ ".s:vmode."fg=".s:error     .""
147 
148 exe "let s:fmt_nOne= ‘ ".s:vmode."=NONE".          " term=NONE"        .""
149 exe "let s:fmt_bold      = ‘ ".s:vmode."=NONE".s:b.      " term=NONE".s:b    .""
150 exe "let s:fmt_bldi      = ‘ ".s:vmode."=NONE".s:b.s:i.  " term=NONE".s:b.s:i.""
151 exe "let s:fmt_undr      = ‘ ".s:vmode."=NONE".s:u.      " term=NONE".s:u    .""
152 exe "let s:fmt_undb      = ‘ ".s:vmode."=NONE".s:u.s:b.  " term=NONE".s:u.s:b.""
153 exe "let s:fmt_undi      = ‘ ".s:vmode."=NONE".s:u.s:i.  " term=NONE".s:u.s:i.""
154 exe "let s:fmt_curl      = ‘ ".s:vmode."=NONE".s:c.      " term=NONE".s:c    .""
155 exe "let s:fmt_ital      = ‘ ".s:vmode."=NONE".s:i.      " term=NONE".s:i    .""
156 exe "let s:fmt_stnd      = ‘ ".s:vmode."=NONE".s:s.      " term=NONE".s:s    .""
157 exe "let s:fmt_revr      = ‘ ".s:vmode."=NONE".s:r.      " term=NONE".s:r    .""
158 exe "let s:fmt_revb      = ‘ ".s:vmode."=NONE".s:r.s:b.  " term=NONE".s:r.s:b.""
159 
160 " Highlighting
161 " ----------------
162 
163 " editor
164 exe "hi! Normal"          .s:fg_foreground  .s:bg_background  .s:fmt_none
165 exe "hi! ColorColumn"     .s:fg_none        .s:bg_line        .s:fmt_none
166 exe "hi! CursorColumn"    .s:fg_none        .s:bg_line        .s:fmt_none
167 exe "hi! CursorLine"      .s:fg_none        .s:bg_line        .s:fmt_none
168 exe "hi! CursorLineNr"    .s:fg_orange      .s:bg_none        .s:fmt_bold
169 exe "hi! VertSplit"       .s:fg_window      .s:bg_none        .s:fmt_none
170 exe "hi! NonText"         .s:fg_selection   .s:bg_none        .s:fmt_none
171 exe "hi! SignColumn"      .s:fg_none        .s:bg_darkcolumn  .s:fmt_none
172 exe "hi! LineNr"          .s:fg_linenr      .s:bg_none        .s:fmt_none
173 exe "hi! StatusLine"      .s:fg_comment     .s:bg_background  .s:fmt_revr
174 exe "hi! StatusLineNC"    .s:fg_window      .s:bg_comment     .s:fmt_revr
175 "exe "hi! TabLine"        .s:fg_foreground  .s:bg_darkcolumn  .s:fmt_revr
176 exe "hi! TabLine"         .s:fg_window      .s:bg_darkcolumn  .s:fmt_revr
177 exe "hi! TabLineFill"     .s:fg_window      .s:bg_darkcolumn  .s:fmt_revr
178 exe "hi! TabLineSel"      .s:fg_background  .s:bg_green       .s:fmt_bldi
179 exe "hi! Visual"          .s:fg_none        .s:bg_selection   .s:fmt_none
180 exe "hi! Search"          .s:fg_green       .s:bg_darkcolumn  .s:fmt_bold
181 exe "hi! MatchParen"      .s:fg_none        .s:bg_purple      .s:fmt_none
182 "exe "hi! MatchParen"     .s:fg_background  .s:bg_purple      .s:fmt_none
183 exe "hi! Question"        .s:fg_yellow      .s:bg_none        .s:fmt_none
184 exe "hi! ModeMsg"         .s:fg_yellow      .s:bg_none        .s:fmt_none
185 exe "hi! MoreMsg"         .s:fg_yellow      .s:bg_none        .s:fmt_none
186 exe "hi! ErrorMsg"        .s:fg_background  .s:bg_red         .s:fmt_stnd
187 exe "hi! WarningMsg"      .s:fg_red         .s:bg_none        .s:fmt_none
188 
189 " misc
190 exe "hi! SpecialKey"      .s:fg_selection   .s:bg_none        .s:fmt_none
191 exe "hi! Title"           .s:fg_yellow      .s:bg_none        .s:fmt_none
192 exe "hi! Directory"       .s:fg_aqua        .s:bg_none        .s:fmt_none
193 
194 " diff
195 exe "hi! DiffAdd"         .s:fg_addfg       .s:bg_addbg       .s:fmt_none
196 exe "hi! DiffDelete"      .s:fg_delfg       .s:bg_none        .s:fmt_none
197 exe "hi! DiffChange"      .s:fg_changefg    .s:bg_changebg    .s:fmt_none
198 exe "hi! DiffText"        .s:fg_background  .s:bg_aqua        .s:fmt_none
199 
200 " fold
201 exe "hi! Folded"          .s:fg_comment     .s:bg_darkcolumn  .s:fmt_none
202 exe "hi! FoldColumn"      .s:fg_none        .s:bg_darkcolumn  .s:fmt_none
203 "        Incsearch"
204 
205 " popup menu
206 exe "hi! Pmenu"           .s:fg_foreground  .s:bg_selection   .s:fmt_none
207 exe "hi! PmenuSel"        .s:fg_foreground  .s:bg_selection   .s:fmt_revr
208 "        PmenuSbar"
209 "        PmenuThumb"
210 
211 " Generic Syntax Highlighting
212 " ---------------------------
213 
214 if g:dracula_italic == 1
215     exe "hi! Constant"    .s:fg_purple      .s:bg_none        .s:fmt_ital
216 else
217     exe "hi! Constant"    .s:fg_purple      .s:bg_none        .s:fmt_none
218 endif
219 
220 exe "hi! Number"          .s:fg_purple      .s:bg_none        .s:fmt_none
221 exe "hi! Float"           .s:fg_purple      .s:bg_none        .s:fmt_none
222 exe "hi! Boolean"         .s:fg_purple      .s:bg_none        .s:fmt_none
223 exe "hi! Character"       .s:fg_yellow      .s:bg_none        .s:fmt_none
224 exe "hi! String"          .s:fg_yellow      .s:bg_none        .s:fmt_none
225 
226 exe "hi! Type"            .s:fg_aqua        .s:bg_none        .s:fmt_none
227 exe "hi! Identifier"      .s:fg_aqua        .s:bg_none        .s:fmt_none
228 exe "hi! Function"        .s:fg_green       .s:bg_none        .s:fmt_none
229 
230 exe "hi! Statement"       .s:fg_pink        .s:bg_none        .s:fmt_none
231 exe "hi! Operator"        .s:fg_pink        .s:bg_none        .s:fmt_none
232 exe "hi! Label"           .s:fg_yellow      .s:bg_none        .s:fmt_none
233 "        Conditional"
234 "        Repeat"
235 "        Keyword"
236 "        Exception"
237 
238 exe "hi! PreProc"         .s:fg_green       .s:bg_none        .s:fmt_none
239 "        Include"
240 "        Define"
241 "        Macro"
242 "        PreCondit"
243 
244 exe "hi! Special"         .s:fg_aqua        .s:bg_none        .s:fmt_none
245 "        SpecialKey
246 "        SpecialChar"
247 "        Tag"
248 "        Delimiter"
249 "        SpecialComment"
250 "        Debug"
251 
252 exe "hi! Underlined"      .s:fg_green       .s:bg_none        .s:fmt_none
253 exe "hi! Ignore"          .s:fg_none        .s:bg_none        .s:fmt_none
254 exe "hi! Error"           .s:fg_red         .s:bg_error       .s:fmt_undr
255 
256 if g:dracula_italic == 1
257     exe "hi! Todo"        .s:fg_orange      .s:bg_none        .s:fmt_bldi
258     exe "hi! Comment"     .s:fg_comment     .s:bg_none        .s:fmt_ital
259 else
260     exe "hi! Todo"        .s:fg_orange      .s:bg_none        .s:fmt_bold
261     exe "hi! Comment"     .s:fg_comment     .s:bg_none        .s:fmt_none
262 endif
263 
264 " NerdTree
265 " --------
266 
267 exe "hi! NERDTreeOpenable"          .s:fg_yellow      .s:bg_none        .s:fmt_none
268 exe "hi! NERDTreeClosable"          .s:fg_yellow      .s:bg_none        .s:fmt_none
269 exe "hi! NERDTreeHelp"              .s:fg_green       .s:bg_none        .s:fmt_none
270 exe "hi! NERDTreeBookmarksHeader"   .s:fg_purple      .s:bg_none        .s:fmt_bold
271 exe "hi! NERDTreeBookmarksLeader"   .s:fg_purple      .s:bg_none        .s:fmt_none
272 exe "hi! NERDTreeBookmarkName"      .s:fg_pink        .s:bg_none        .s:fmt_none
273 exe "hi! NERDTreeCWD"               .s:fg_purple      .s:bg_none        .s:fmt_bold
274 exe "hi! NERDTreeDir"               .s:fg_aqua        .s:bg_none        .s:fmt_none
275 exe "hi! NERDTreeUp"                .s:fg_orange      .s:bg_none        .s:fmt_none
276 exe "hi! NERDTreeDirSlash"          .s:fg_aqua        .s:bg_none        .s:fmt_none
277 
278 " Syntastic
279 " ---------
280 
281 hi! link SyntasticErrorSign Error
282 exe "hi! SyntasticWarningSign"          .s:fg_orange       .s:bg_darkcolumn    .s:fmt_none
283 
284 " Language highlight
285 " ------------------
286 
287 " Vim command
288 exe "hi! vimCommand"                    .s:fg_pink         .s:bg_none          .s:fmt_none
289 
290 " Javascript (compliant with https://github.com/pangloss/vim-Javascript)
291 exe "hi! jsFuncName"                    .s:fg_green        .s:bg_none          .s:fmt_none
292 exe "hi! jsThis"                        .s:fg_aqua         .s:bg_none          .s:fmt_none
293 exe "hi! jsRegexpString"                .s:fg_purple       .s:bg_none          .s:fmt_none
294 exe "hi! jsFuncCall"                    .s:fg_none         .s:bg_none          .s:fmt_none
295 
296 if g:dracula_italic == 1
297     exe "hi! jsFuncArgs"                .s:fg_orange       .s:bg_none          .s:fmt_ital
298 else
299     exe "hi! jsFuncArgs"                .s:fg_orange       .s:bg_none          .s:fmt_none
300 endif
301 
302 " Html
303 exe "hi! htmlTag"                       .s:fg_foreground   .s:bg_none          .s:fmt_none
304 exe "hi! htmlEndTag"                    .s:fg_foreground   .s:bg_none          .s:fmt_none
305 exe "hi! htmlTagName"                   .s:fg_pink         .s:bg_none          .s:fmt_none
306 exe "hi! htmlArg"                       .s:fg_aqua         .s:bg_none          .s:fmt_none
307 exe "hi! htmlSpecialChar"               .s:fg_purple       .s:bg_none          .s:fmt_none
308 
309 " Xml
310 hi! link xmlTag     htmlTag
311 hi! link xmlEndTag  htmlEndTag
312 hi! link xmlTagName htmlTagName
313 hi! link xmlAttrib  htmlArg
314 
315 " CSS
316 if g:dracula_italic == 1
317     exe "hi! cssURL"                    .s:fg_orange       .s:bg_none          .s:fmt_undi
318 else
319     exe "hi! cssURL"                    .s:fg_orange       .s:bg_none          .s:fmt_undr
320 endif
321 exe "hi! cssFunctionName"               .s:fg_aqua         .s:bg_none          .s:fmt_none
322 exe "hi! cssColor"                      .s:fg_purple       .s:bg_none          .s:fmt_none
323 exe "hi! cssPseudoClassId"              .s:fg_purple       .s:bg_none          .s:fmt_none
324 exe "hi! cssClassName"                  .s:fg_green        .s:bg_none          .s:fmt_none
325 exe "hi! cssValueLength"                .s:fg_purple       .s:bg_none          .s:fmt_none
326 exe "hi! cssCommonAttr"                 .s:fg_pink         .s:bg_none          .s:fmt_none
327 exe "hi! cssBraces"                     .s:fg_foreground   .s:bg_none          .s:fmt_none
328 
329 " ruby
330 exe "hi! rubyInstanceVariable"          .s:fg_none         .s:bg_none          .s:fmt_none
331 exe "hi! rubyInterpolationDelimiter"    .s:fg_none         .s:bg_none          .s:fmt_none
332 exe "hi! rubyPseudoVariable"            .s:fg_none         .s:bg_none          .s:fmt_none
333 exe "hi! rubyGlobalVariable"            .s:fg_none         .s:bg_none          .s:fmt_none
334 exe "hi! rubyClassVariable"             .s:fg_none         .s:bg_none          .s:fmt_none
335 exe "hi! rubyOperator"                  .s:fg_pink         .s:bg_none          .s:fmt_none
336 exe "hi! rubyFunction"                  .s:fg_green        .s:bg_none          .s:fmt_none
337 exe "hi! rubyStringDelimiter"           .s:fg_yellow       .s:bg_none          .s:fmt_none
338 exe "hi! rubyRegexp"                    .s:fg_yellow       .s:bg_none          .s:fmt_none
339 exe "hi! rubyRegexpDelimiter"           .s:fg_yellow       .s:bg_none          .s:fmt_none
340 exe "hi! rubySymbol"                    .s:fg_purple       .s:bg_none          .s:fmt_none
341 exe "hi! rubyEscape"                    .s:fg_purple       .s:bg_none          .s:fmt_none
342 exe "hi! rubyControl"                   .s:fg_aqua         .s:bg_none          .s:fmt_none
343 exe "hi! rubyInclude"                   .s:fg_aqua         .s:bg_none          .s:fmt_none
344 exe "hi! rubyClass"                     .s:fg_aqua         .s:bg_none          .s:fmt_none
345 exe "hi! rubyException"                 .s:fg_aqua         .s:bg_none          .s:fmt_none
346 exe "hi! rubyRailsARAssociationMethod"  .s:fg_orange       .s:bg_none          .s:fmt_none
347 exe "hi! rubyRailsARMethod"             .s:fg_orange       .s:bg_none          .s:fmt_none
348 exe "hi! rubyRailsRenderMethod"         .s:fg_orange       .s:bg_none          .s:fmt_none
349 exe "hi! rubyRailsMethod"               .s:fg_orange       .s:bg_none          .s:fmt_none
350 
351 if g:dracula_italic == 1
352     exe "hi! rubyBlockParameter"        .s:fg_orange       .s:bg_none          .s:fmt_ital
353     exe "hi! rubyConstant"              .s:fg_orange       .s:bg_none          .s:fmt_ital
354     exe "hi! rubyIdentifier"            .s:fg_orange       .s:bg_none          .s:fmt_ital
355 else
356     exe "hi! rubyBlockParameter"        .s:fg_orange       .s:bg_none          .s:fmt_none
357     exe "hi! rubyConstant"              .s:fg_orange       .s:bg_none          .s:fmt_none
358     exe "hi! rubyIdentifier"            .s:fg_orange       .s:bg_none          .s:fmt_none
359 endif
360 
361 " eruby
362 exe "hi! erubyDelimiter"                .s:fg_none         .s:bg_none          .s:fmt_none
363 exe "hi! erubyComment"                  .s:fg_comment      .s:bg_none          .s:fmt_none
364 exe "hi! erubyRailsMethod"              .s:fg_aqua         .s:bg_none          .s:fmt_none

vim color


推荐阅读
  • 默认情况下,Git 使用 Nano 编辑器进行提交信息的编辑,但如果您更喜欢使用 Vim,可以通过简单的配置更改来实现这一变化。本文将指导您如何通过修改全局配置文件来设置 Vim 作为默认的 Git 提交编辑器。 ... [详细]
  • 为何Compose与Swarm之后仍有Kubernetes的诞生?
    探讨在已有Compose和Swarm的情况下,Kubernetes是如何以其独特的设计理念和技术优势脱颖而出,成为容器编排领域的领航者。 ... [详细]
  • Awk是一款功能强大的文本分析与处理工具,尤其在数据解析和报告生成方面表现突出。它通过读取由换行符分隔的记录,并按照指定的字段分隔符来划分和处理这些记录,从而实现复杂的数据操作。 ... [详细]
  • 深入解析Unity3D游戏开发中的音频播放技术
    在游戏开发中,音频播放是提升玩家沉浸感的关键因素之一。本文将探讨如何在Unity3D中高效地管理和播放不同类型的游戏音频,包括背景音乐和效果音效,并介绍实现这些功能的具体步骤。 ... [详细]
  • 本文探讨了一种常见的C++面试题目——实现自己的String类。通过此过程,不仅能够检验开发者对C++基础知识的掌握程度,还能加深对其高级特性的理解。文章详细介绍了如何实现基本的功能,如构造函数、析构函数、拷贝构造函数及赋值运算符重载等。 ... [详细]
  • 随着Linux操作系统的广泛使用,确保用户账户及系统安全变得尤为重要。用户密码的复杂性直接关系到系统的整体安全性。本文将详细介绍如何在CentOS服务器上自定义密码规则,以增强系统的安全性。 ... [详细]
  • 在项目冲刺的最后一天,团队专注于软件用户界面的细节优化,包括调整控件布局和字体设置,以确保界面的简洁性和用户友好性。 ... [详细]
  • JavaScript 页面卸载事件详解 (onunload)
    当用户从页面离开时(如关闭页面或刷新页面),会触发 onunload 事件,此时可以执行预设的脚本。需要注意的是,不同的浏览器对 onunload 事件的支持程度可能有所不同。 ... [详细]
  • 探索Java 11中的ZGC垃圾收集器
    Java 11引入了一种新的垃圾收集器——ZGC,由Oracle公司研发,旨在支持TB级别的内存容量,并保证极低的暂停时间。本文将探讨ZGC的开发背景、技术特点及其潜在的应用前景。 ... [详细]
  • 本文探讨了使用普通生成函数和指数生成函数解决组合与排列问题的方法,特别是在处理特定路径计数问题时的应用。文章通过详细分析和代码实现,展示了如何高效地计算在给定条件下不相邻相同元素的排列数量。 ... [详细]
  • 在Notepad++中配置Markdown语法高亮及实时预览功能
    本文详细介绍了如何在Notepad++中配置Markdown语法高亮和实时预览功能,包括必要的插件安装和设置步骤。 ... [详细]
  • 探讨如何在映射文件中处理重复的属性字段,以避免数据操作时出现错误。 ... [详细]
  • 网络流24题——试题库问题
    题目描述:假设一个试题库中有n道试题。每道试题都标明了所属类别。同一道题可能有多个类别属性。现要从题库中抽取m道题组成试卷。并要求试卷包含指定类型的试题。试设计一个满足要求的组卷算 ... [详细]
  • 利用无代码平台实现高效业务应用开发
    随着市场环境的变化加速,全球企业都在探索更为敏捷的应用开发模式,以便快速响应新兴的商业机遇。然而,传统的软件开发方式不仅成本高昂,而且耗时较长,这往往导致IT与业务部门之间的合作障碍,进而影响项目的成功。本文将探讨如何通过无代码开发平台解决这些问题。 ... [详细]
  • 本文介绍了如何通过安装 sqlacodegen 和 pymysql 来根据现有的 MySQL 数据库自动生成 ORM 的模型文件(model.py)。此方法适用于需要快速搭建项目模型层的情况。 ... [详细]
author-avatar
男人还是闷骚点好
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有