Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
BB-code для подсветки синтаксиса кода на Java
#1
Не знаю, поднимался ли уже такой вопрос, но нет ли возможности добавить на форуме мод/бб-код для полноценной подсветки синтаксиса исходников на яве, так же как сейчас существует бб-код для пхп - PHP?
Ответ
#2
[noparse][src="java"][/src][/noparse]

[SRC="java"]/**
* This file is part of aion-emu <aion-emu.com>.
*
* aion-emu is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* aion-emu is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aion-emu. If not, see <http://www.gnu.org/licenses/>.
*/
package com.aionemu.gameserver.network.loginserver.serverpackets;

import java.nio.ByteBuffer;

import com.aionemu.gameserver.network.loginserver.LoginServerConnection;
import com.aionemu.gameserver.network.loginserver.LsServerPacket;

/**
* This packet is sended by GameServer when player is requesting fast reconnect to login server. LoginServer in response
* will send reconectKey.
*
* @author -Nemesiss-
*
*/
public class SM_ACCOUNT_RECONNECT_KEY extends LsServerPacket
{
/**
* AccountId of client that is requested reconnection to LoginServer.
*/
private final int accountId;

/**
* Constructs new instance of <tt>SM_ACCOUNT_RECONNECT_KEY </tt> packet.
*
* @param accountId
* account identifier.
*/
public SM_ACCOUNT_RECONNECT_KEY(int accountId)
{
super(0x02);
this.accountId = accountId;
}

/**
* {@inheritDoc}
*/
@Override
protected void writeImpl(LoginServerConnection con, ByteBuffer buf)
{
writeC(buf, getOpcode());
writeD(buf, accountId);
}
}[/SRC]
Ответ
#3
странно что этот тег не вытащен в виде кнопки и упоминания о нем я вроде не видел (или внимания не обратил).
Ответ
#4
[Изображение: fPxXv.png]
Ответ
#5
Было-бы неплохо, втулить эту менюшку в форму быстрого редактирования сообщения. А то порой часто...напрягает что-ли (особенно сидя с телефона)
Ответ
#6
Добавил и при редактировании.
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  Подсветка синтаксиса Gubble 15 3,689 08-24-2012, 12:21 AM
Последний пост: Zubastic

Перейти к форуму:


Пользователи, просматривающие эту тему: 1 Гость(ей)