帖子菜单

syntaxhighlighter高亮代码插件测试

admin 2017-6-27

#include "stdafx.h"
#include <Windows.h>
int _tmain(int argc, _TCHAR* argv[])
{
	if (RegisterHotKey(
        NULL,
        1,
        MOD_ALT | MOD_NOREPEAT,
        0x42))  //0x42 is 'b'
    {
        _tprintf(_T("Hotkey 'ALT+b' registered, using MOD_NOREPEAT flag\n"));
    }
 
    MSG msg = {0};
    while (GetMessage(&msg, NULL, 0, 0) != 0)
    {
        if (msg.message == WM_HOTKEY)
        {
            _tprintf(_T("WM_HOTKEY received\n"));            
        }
    } 
 
    return 0;
}

JS

$('textarea').keyup(function(e) {
	if((e.ctrlKey && (e.which == 13 || e.which == 10)) || (e.altKey && e.which == 83)) {
		//Ctrl+Enter执行
		return false;
	}
    if(e.which == 13){ //输入回车键
		var h = $(this)[0].scrollHeight;
		if(h <= 100) {
			return true;
		} else {
			$(this).height($(this)[0].scrollHeight);
			return true;
		}
	}


mixreal

# 1楼 2017-6-28 点评

支持!

lvdan

# 2楼 2018-7-5 点评

<?php
if(strstr($public_r['usetags'],','.$modid.','))
{
  $infotag_readonly='';
$infotag_copykeyboard='  <input type="button" name="Submit3" value="复制关键字" onclick="document.add.infotags.value=document.add.keyboard.value;">';
  if(strstr($public_r['chtags'],','.$modid.','))
{
    $infotag_readonly=' readonly';
    $infotag_copykeyboard='';
}
?>
<tr>
<td height="25" bgcolor="#FFFFFF">TAGS    :
  <input name="infotags" type="text" id="infotags" value="<?=$r[infotags]?>" size="32"<?=$infotag_readonly?>>
  <input type="button" name="Submit" value="选择" onclick="window.open('tags/ChangeTags.php?form=add&field=infotags<?=$ecms_hashur['ehref']?>','','width=700,height=550,scrollbars=yes');">
  <?=$infotag_copykeyboard?>
  <input name="oldinfotags" type="hidden" id="oldinfotags" value="<?=$r[infotags]?>">
  <font color="#333333">(多个用","逗号格开)</font></td>
</tr>
<?php
}
?>


哄着自己玩

# 3楼 2018-7-6 点评

<?php
if(strstr($public_r['usetags'],','.$modid.','))
{
  $infotag_readonly='';
$infotag_copykeyboard='  <input type="button" name="Submit3" value="复制关键字" onclick="document.add.infotags.value=document.add.keyboard.value;">';
  if(strstr($public_r['chtags'],','.$modid.','))
{
    $infotag_readonly=' readonly';
    $infotag_copykeyboard='';
}
?>
<tr>
<td height="25" bgcolor="#FFFFFF">TAGS    :
  <input name="infotags" type="text" id="infotags" value="<?=$r[infotags]?>" size="32"<?=$infotag_readonly?>>
  <input type="button" name="Submit" value="选择" onclick="window.open('tags/ChangeTags.php?form=add&field=infotags<?=$ecms_hashur['ehref']?>','','width=700,height=550,scrollbars=yes');">
  <?=$infotag_copykeyboard?>
  <input name="oldinfotags" type="hidden" id="oldinfotags" value="<?=$r[infotags]?>">
  <font color="#333333">(多个用","逗号格开)</font></td>
</tr>
<?php
}
?>


tanem

# 4楼 2023-1-25 点评

<pre class="brush: xml"></pre>

tanem

# 5楼 2023-1-25 点评


高亮怎么没用

踩 (1)
赞 (3)
查看 (5493)
登陆后才可发表内容