Jump to content
Araştır
  • Diğer seçenekler ...
Sonuçları bul ...
Sonuçları bul ...
KO Developers Platformuna Hoşgeldin!
PENTAGRAM

[14.10.2017] - Mesaj içi kod renklendirme eklentisi

Önerilen Mesajlar

Merhabalar,

Yazdığınız mesajlara program kodu eklerken, Visual Studio'daki gibi otomatik renklendirme (syntax highlighting) yapacak yeni eklenti aktiftir. Mesajın içerisinde daha derli toplu durmasının yanı sıra, kodunuzu otomatik olarak hizalar ve satır numaralarını da ekler.

Eklentiyi kullanmak için mesajınıza kodu şu şekilde ekleyin;

C++ kodu için


/* kod buraya gelecek*/


C# kodu için


/* kod buraya gelecek*/



Assembly kodu için


/* kod buraya gelecek*/



SQL kodu için


/* kod buraya gelecek*/



Desteklenen diller sadece bunlarla sınırlı olmayıp, sıralı tam liste aşağıdadır.
Spoiler

4cs
6502acme
6502kickass
6502tasm
68000devpac
abap
actionscript
actionscript3
ada
aimms
algol68
apache
applescript
apt_sources
arm
asm
asp
asymptote
autoconf
autohotkey
autoit
avisynth
awk
bascomavr
bash
basic4gl
batch
bf
biblatex
bibtex
blitzbasic
bnf
boo
c
caddcl
cadlisp
ceylon
cfdg
cfm
chaiscript
chapel
cil
clojure
cmake
cobol
coffeescript
cpp-qt
cpp-winapi
cpp
csharp
css
cuesheet
c_loadrunner
c_mac
c_winapi
d
dart
dcl
dcpu16
dcs
delphi
diff
div
dos
dot
e
ecmascript
eiffel
email
epc
erlang
euphoria
ezt
f1
falcon
fo
fortran
freebasic
freeswitch
fsharp
gambas
gdb
genero
genie
gettext
glsl
gml
gnuplot
go
groovy
gwbasic
haskell
haxe
hicest
hq9plus
html4strict
html5
icon
idl
ini
inno
intercal
io
ispfpanel
j
java
java5
javascript
jcl
jquery
julia
julia.bak
kixtart
klonec
klonecpp
kotlin
latex
lb
ldif
lisp
llvm
locobasic
logtalk
lolcode
lotusformulas
lotusscript
lscript
lsl2
lua
m68k
magiksf
make
mapbasic
mathematica
matlab
mercury
metapost
mirc
mk-61
mmix
modula2
modula3
mpasm
mxml
mysql
nagios
netrexx
newlisp
nginx
nimrod
nsis
oberon2
objc
objeck
ocaml-brief
ocaml
octave
oobas
oorexx
oracle11
oracle8
oxygene
oz
parasail
parigp
pascal
pcre
per
perl
perl6
pf
phix
php-brief
php
pic16
pike
pixelbender
pli
plsql
postgresql
postscript
povray
powerbuilder
powershell
proftpd
progress
prolog
properties
providex
purebasic
pycon
pys60
python
q
qbasic
qml
racket
rails
rbs
rebol
reg
rexx
robots
rpmspec
rsplus
ruby
rust
sas
sass
scala
scheme
scilab
scl
sdlbasic
smalltalk
smarty
spark
sparql
sql
standardml
stonescript
swift
systemverilog
tcl
tclegg
teraterm
test.txt
texgraph
text
thinbasic
tsql
twig
typoscript
unicon
upc
urbi
uscript
vala
vb
vbnet
vbscript
vedit
verilog
vhdl
vim
visualfoxpro
visualprolog
whitespace
whois
winbatch
xbasic
xml
xojo
xorg_conf
xpp
xyscript
yaml
z80
zxbasic


Örnekler;

C++

Spoiler




template <:size_t n>
const bool CPlayer::CheckExistItemAnd(const int32 nItemID[N], const int32 sCount[N])
{
for (auto i = 0; i if (!CheckExistItem(nItemID[i], sCount[i]))
return false;
}
return true;
}


#pragma once

#include
#include

/* Here follow the extremely few remaining D3D8 components we require */

// NOTE: We're using this over M_PI because of the precision
#define D3DX_PI ((float) 3.141592654f)
#define D3DXToRadian( degree ) ((degree) * (D3DX_PI / 180.0f))

/* D3D8 structs */
typedef struct _D3DVECTOR {
float x;
float y;
float z;
} D3DVECTOR;

typedef struct _D3DMATRIX {
union {
struct {
float _11, _12, _13, _14;
float _21, _22, _23, _24;
float _31, _32, _33, _34;
float _41, _42, _43, _44;

};
float m[4][4];
};
} D3DMATRIX;
#define INLINE __forceinline
struct __Matrix44;
struct __Vector3 : public D3DVECTOR // 3D Vertex
{
public:
INLINE __Vector3() {}
INLINE __Vector3(float fx, float fy, float fz) { Set(fx, fy, fz); }

INLINE void Zero() { Set(0.0f, 0.0f, 0.0f); }
INLINE void Set(float fx, float fy, float fz) { x = fx; y = fy; z = fz; }

void Normalize();
float Magnitude() const;
float Dot(const D3DVECTOR& vec) const;
void Cross(const D3DVECTOR& v1, const D3DVECTOR& v2);
void Absolute();

const __Vector3& operator = (const __Vector3& vec);

const __Vector3 operator * (const D3DMATRIX& mtx) const;
void operator *= (float fDelta);
void operator *= (const D3DMATRIX& mtx);
__Vector3 operator + (const D3DVECTOR& vec) const;
__Vector3 operator - (const D3DVECTOR& vec) const;
__Vector3 operator * (const D3DVECTOR& vec) const;
__Vector3 operator / (const D3DVECTOR& vec) const;

void operator += (const D3DVECTOR& vec);
void operator -= (const D3DVECTOR& vec);
void operator *= (const D3DVECTOR& vec);
void operator /= (const D3DVECTOR& vec);

__Vector3 operator + (float fDelta) const;
__Vector3 operator - (float fDelta) const;
__Vector3 operator * (float fDelta) const;
__Vector3 operator / (float fDelta) const;
};


C#
Spoiler



namespace KOTableEditor.Auxillary
{
public enum SupportedLanguage
{
English,
Türkçe,
Español
}
public static class LanguageManager
{
static ResourceManager _resManager;
static CultureInfo _culture;
/* Default language is Turkish.*/
public static SupportedLanguage Language = SupportedLanguage.Türkçe;
public static String Get(string label)
{
return _resManager.GetString(label, _culture);
}
public static void ChangeLanguage(SupportedLanguage newLanguage, Form requestingForm)
{
Language = newLanguage;
if(_resManager == null)
{
_resManager= new ResourceManager("KOTableEditor.Resources.Lang", typeof(Interface.mainFrm).Assembly);
}
switch (newLanguage)
{
case SupportedLanguage.English:
_culture = CultureInfo.CreateSpecificCulture("en");
break;
case SupportedLanguage.Türkçe:
_culture = CultureInfo.CreateSpecificCulture("tr");
break;
case SupportedLanguage.Español:
_culture = CultureInfo.CreateSpecificCulture("es");
break;
}
if (requestingForm == null)
return;
LoadInterfaceLanguage(requestingForm);
}
}
}



Assembly
Spoiler



004DD51B . F6C4 40 TEST AH,0x40
004DD51E . 0F84 8D000000 JE KnightOn.004DD5B1


0049F0A1 . 66:8B48 14 MOV CX,WORD PTR DS:[EAX+0x14]
0049F0A5 . 66:83F9 01 CMP CX,0x1
0049F0A9 . 74 06 JE SHORT KnightOn.0049F0B1
0049F0AB . 66:83F9 02 CMP CX,0x2
0049F0AF . 75 25 JNZ SHORT KnightOn.0049F0D6
0049F0B1 > 8B00 MOV EAX,DWORD PTR DS:[EAX]
0049F0B3 . 8B48 78 MOV ECX,DWORD PTR DS:[EAX+0x78]
0049F0B6 . 8B10 MOV EDX,DWORD PTR DS:[EAX]
0049F0B8 . E9 65A61A00 JMP KnightOn.00649722

006496C2 . 0C 40 OR AL,0x40
006496C4 .^E9 2F5BE5FF JMP KnightOn.0049F1F8
006496C9 > 0C 60 OR AL,0x60
006496CB .^E9 2C5BE5FF JMP KnightOn.0049F1FC



SQL
Spoiler



CREATE TABLE [dbo].[BATTLE](
[sIndex] [smallint] IDENTITY(1,1) NOT NULL,
[byWinnerNation] [tinyint] NOT NULL,
[strWarder1Hero] [varchar](21) NULL,
[strWarder2Hero] [varchar](21) NULL,
[strKeeperHero] [varchar](21) NULL,
[sKarusDeadCount] [smallint] NOT NULL,
[sElmoDeadCount] [smallint] NOT NULL,
[dtBattleDate] [smalldatetime] NOT NULL
) ON [PRIMARY]
GO

INSERT INTO deneme VALUES
(211551,'Hellish','Hellish','A fail-safe attack that inflicts 200% damage and an additional 50 damage. ',26,0,0,2601,12,0,0,0,32056,0,7,51,2115,120,0,0,0,0,0,30,0,0,0,100,1,0,0,0,0,51,111551,0,10),
(211554,'Complete healing','Complete healing','Commpletely heal the HP of a friend',17,0,0,2603,0,0,0,0,605,0,2,54,2115,960,0,0,9,0,15,54,0,0,0,80,3,0,25,0,0,54,111554,0,10),
(211557,'Group massive healing','Group massive healing','Heal all the members of your party with 960 HP',17,0,0,2603,0,0,0,0,603,0,6,57,2115,960,0,0,9,0,15,54,0,0,0,80,3,0,25,0,0,57,111557,0,10),
(211560,'Group complete healing','Group complete healing','Completely heal all the members of your party',17,0,0,2603,0,0,0,0,605,0,6,60,2115,1920,0,0,9,0,15,64,0,0,0,80,3,0,25,0,0,60,111560,0,10);

USE [v1534]
GO
/****** Object: StoredProcedure [dbo].[GAMESERVER_REFRESH_DATA] Script Date: 14.10.2017 16:49:08 ******/
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
/* Author : PENTAGRAM */
/* Purpose: Prepares refreshed data for all ranking tables, and performs cleanup for KNIGHTS.
*/

ALTER PROCEDURE [dbo].[GAMESERVER_REFRESH_DATA]
AS
-- Update leader point ranking table
EXEC PROC_CHARACTER_UPDATE_PERSONAL_RANKINGS
-- Update loyalty point ranking table
EXEC PROC_CHARACTER_UPDATE_KNIGHTS_RANKINGS
-- Update knights ranking
EXEC PROC_CLAN_UPDATE_RANKING
RETURN





Bundan sonra açacağınız konularda bu eklentiyi kullanmanızı şiddetle tavsiye ediyoruz.
İyi forumlar :cool:

İletiyi paylaş


Link to post
Sitelerde Paylaş
Alıntı
Demeseydin cidden nereye koyardık çok merak ediyorum. Teşekkürler.


Demesem kodu öyle yerlere yazacak adamlar tanıyorum ki aklın şaşar. :rolleyes:

örneğin;

Alıntı





.. hocam renklenmedi bu??


Alıntı


void main(void){
printf("choq coolum yhaa..
");
}


yhaa.. renkler hc hs dql... syh bu hlaa..



Alıntı


[highlight=private static int sayi1 = 77;
csharp


özellik eklemişsiniz ama bozuk bu.

İletiyi paylaş


Link to post
Sitelerde Paylaş

×
×
  • Yeni Oluştur...