geshi

wordpress引入土豆优酷视频真正实现自适应宽高

只愿长相守 提交于 2020-08-15 07:00:08
511遇见最近录制了几套易语言大漠制作游戏外挂的视频,发布在了土豆,在引入自己的网站时,由于设置了视频的高度,宽度,在移动端浏览时出现了高度无法自适应,给浏览者带来极大的不舒服,缺乏体验性,百度了半天,调试了半天,大约有两个角度来解决,一个是js,一个是css,最后不得不大声说,伟大的css,使用css控制及方便又不影响加载速度,总之看到网上铺天盖地的文章也不知道谁是原创,更不知道站长测试了没有,总之我只有css的方法成功!强烈推荐css的方法,以下方法来源网络,不知道谁是原创了,无法保留版权。 一、CSS方法 在主题引入的css文件中,干脆直接在 style.css 文件中引入以下内容:(以下方法来自空气网络) .rat0-video { position:relative; padding-bottom:56.25%; height:0; overflow:hidden; } .rat0-video iframe,.rat0-video object,.rat0-video embed { position:absolute; top:0; left:0; width:100%; height:100%; } 以iframe方式引入视频一般有三种方法,我们要想在移动端支持,我们要采用Html5,及通用方式的引入方法,以土地为例: <iframe src="http://www

How to enable Mathematica syntax highlighting for MediaWiki using extension “SyntaxHighlight GeSHi”?

江枫思渺然 提交于 2020-01-23 01:34:07
问题 I'd like to syntax highlight Mathematica code on a MediaWiki site. I've already installed the MediaWiki extension SyntaxHighlight GeSHi and verified that it works for other languages. I tried simply putting a Mathematica langauge data file mathematica.php into MediaWiki's extension path wiki/extensions/SyntaxHighlight_GeSHi/geshi , however it didn't correctly highlight a Mathematica code block such as: <syntaxhighlight lang="Mathematica"> (* this is a comment *) List[Sin[x], Cos[x], Tan[x]];

Advice for implementing simple regex (for bbcode/geshi parsing)

僤鯓⒐⒋嵵緔 提交于 2019-12-10 12:17:39
问题 I had made a personal note software in PHP so I can store and organize my notes and wished for a nice simple format to write them in. I had done it in Markdown but found it was a little confusing and there was no simple syntax highlighting, so I did bbcode before and wished to implement that. Now for GeSHi which I really wish to implement (the syntax highlighter), it requires the most simple code like this: $geshi = new GeSHi($sourcecode, $language); $geshi->parse_code(); Now this is the easy

How to enable Mathematica syntax highlighting for MediaWiki using extension “SyntaxHighlight GeSHi”?

时光毁灭记忆、已成空白 提交于 2019-12-04 12:58:49
I'd like to syntax highlight Mathematica code on a MediaWiki site. I've already installed the MediaWiki extension SyntaxHighlight GeSHi and verified that it works for other languages. I tried simply putting a Mathematica langauge data file mathematica.php into MediaWiki's extension path wiki/extensions/SyntaxHighlight_GeSHi/geshi , however it didn't correctly highlight a Mathematica code block such as: <syntaxhighlight lang="Mathematica"> (* this is a comment *) List[Sin[x], Cos[x], Tan[x]]; </syntaxhighlight> Any ideas? I do not see Mathematica listed as a supported language at http://qbnz

Syntax Highlighter for Java

我是研究僧i 提交于 2019-11-26 20:48:07
问题 As you know there is a Syntax highlighter for PHP called GeSHi which supports a great number of Programming Languages or Code formats. However, I couldn't find such a library for Java which supports programming languages that I need (ADA, ASP, BNF, Bash, Brainfuck, C, C++, C#, CSS, Cobol, ColdFusion, D, Fortran, Haskell, HTML, INI (Config), Java, JavaScript, Lisp, Make, Objective C, PASCAL, Perl, PHP, PLSQL, Prolog, Python, Ruby, Scheme, SQL, VB.NET, Verilog, VHDL, Visual Basic, XML.) Do you