Форум администраторов игровых серверов

Форум администраторов игровых серверов (https://forum.zone-game.info/TT.php)
-   О форуме / About Zone-Game (https://forum.zone-game.info/forumdisplay.php?f=131)
-   -   BB-code для подсветки синтаксиса кода на Java (https://forum.zone-game.info/showthread.php?t=28997)

Gaikotsu 23.05.2013 19:19

Подсветка синтаксиса кода на Java
 
Не знаю, поднимался ли уже такой вопрос, но нет ли возможности добавить на форуме мод/бб-код для полноценной подсветки синтаксиса исходников на яве, так же как сейчас существует бб-код для пхп - PHP?

PROGRAMMATOR 23.05.2013 20:13

Re: BB-code для подсветки синтаксиса кода на Java
 
[src="java"][/src]

/**
 * 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);
	}
}
Code: Java

Gaikotsu 23.05.2013 20:26

Re: BB-code для подсветки синтаксиса кода на Java
 
странно что этот тег не вытащен в виде кнопки и упоминания о нем я вроде не видел (или внимания не обратил).

PROGRAMMATOR 23.05.2013 23:29

Re: BB-code для подсветки синтаксиса кода на Java
 
http://image.zone-game.info/images/2013/05/24/fPxXv.png

KilRoy 23.05.2013 23:47

Re: BB-code для подсветки синтаксиса кода на Java
 
Было-бы неплохо, втулить эту менюшку в форму быстрого редактирования сообщения. А то порой часто...напрягает что-ли (особенно сидя с телефона)

PROGRAMMATOR 24.05.2013 00:25

Re: BB-code для подсветки синтаксиса кода на Java
 
Добавил и при редактировании.


Текущее время: 08:03. Часовой пояс GMT +3.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot