Duyuru Kod Editöründe Yapılan Değişiklikler

Whistle

Ruhsuz Filozof
Kurucu
Kurumsal Üye
Geliştirici
Yardımsever Üye
Mesaj
11.494
Çözümler
546
Beğeni
12.044
Puan
5.864
Merhaba arkadaşlar,
Sitemizde kodlama alanına olan yoğunluktan dolayı kod editöründe değişiklikler yaptık.
Bu değişiklikler ile artık daha fazla kodlama dilini destekleyeceğiz.
Bunlar kısaca;
  • PHP <Bu vardı>
  • HTML <Buda vardı>
  • C++
  • Python
  • JavaScript
  • CSS
  • C header (c, h)
  • C#
  • Lua (Quest)
  • SQL
  • diff
  • gdb
  • Dos (Cmd)
  • İni
  • XML
  • Text
  • Hex
  • Pascal
  • VB
  • Java
  • Matlab
  • Delphi
  • SH
  • Asp
  • Apache (conf)
Bu yukarıdakiler dışında desteklenen dillerde var. Lakin biz en çok kullananları seçenek olarak ekledik.
İsterseniz nasıl göründüklerine bir göz atalım. ^_^

PHP:
<?php
echo "Merhaba Dünya"
?>

HTML:
<html>
<head>
    <title>Merhaba</title>
</head>
<body>
    <h1>Merhaba</h1>
    <p>Merhaba Dünya</p>
</body>
</html>

C++:
int CInputMain::Messenger(LPCHARACTER ch, const char* c_pData, size_t uiBytes)
{
    TPacketCGMessenger* p = (TPacketCGMessenger*) c_pData;

    if (uiBytes < sizeof(TPacketCGMessenger))
        return -1;

    c_pData += sizeof(TPacketCGMessenger);
    uiBytes -= sizeof(TPacketCGMessenger);

Python:
## Shop
class ShopDialog(ui.ScriptWindow):

    def __init__(self):
        ui.ScriptWindow.__init__(self)
        self.tooltipItem = 0
        self.xShopStart = 0
        self.yShopStart = 0
        self.questionDialog = None
        self.popup = None
        self.itemBuyQuestionDialog = None
        self.itemQuestionChangeItemPrice = None

    def __del__(self):
        ui.ScriptWindow.__del__(self)

JavaScript:
if (var == true)
{
    document.write("Merhaba dünya")
}

CSS:
#content .pageContent {
    background-color: rgb(252, 252, 255);
    padding: 10px 20px;
}

C:
#pragma pack(1)
typedef struct SPacketGGSetup
{
    BYTE    bHeader;
    WORD    wPort;
    BYTE    bChannel;
} TPacketGGSetup;

C#:
// Hello1.cs
public class Hello1
{
   public static void Main()
   {
     System.Console.WriteLine("Hello, World!");
   }
}

Lua (Quest):
--quest.create = function(f) return coroutine.create(f) end
--quest.process = function(co,args) return coroutine.resume(co, args) end
setstate = q.setstate
newstate = q.setstate

q.set_clock = function(name, value) q.set_clock_name(name) q.set_clock_value(value) end
q.set_counter = function(name, value) q.set_counter_name(name) q.set_counter_value(value) end
c_item_name = function(vnum) return ("[ITEM value;"..vnum.."]") end
c_mob_name = function(vnum) return ("[MOB value;"..vnum.."]") end

Kod:
SELECT * FROM player.item WHERE window = 'INVENTORY' and owner_id = 1

Kod:
CShop::Create (this=0x55aea160, table=0x2b954fc9) at shop.cpp:168
       pkItem = 0x2af8ba00
       pkItemProto = (const TItemTable *) 0x29a97a40
       item = (CShop::shop_item &) @0xc8: Cannot access memory at address 0xc8

Diff:
diff -rupN pre/algebra.cpp after/algebra.cpp
--- pre/algebra.cpp    2015-05-05 17:06:11.000000000 +0200
+++ after/algebra.cpp    2015-05-05 17:07:18.000000000 +0200
@@ -58,7 +58,7 @@ template <class T> const T& AbstractEucl
     Element g[3]={b, a};
     unsigned int i0=0, i1=1, i2=2;
-    while (!Equal(g[i1], this->Identity()))
+    while (!this->Equal(g[i1], this->Identity()))
     {
         g[i2] = Mod(g[i0], g[i1]);
         unsigned int t = i0; i0 = i1; i1 = i2; i2 = t;

Kod:
LocaleService locale/turkey/locale_string.txt


 KANAL1 ACILDI ..

 METIN2 AKTIF! ..

root@M2SourceBuild-SSD:/usr/game #

INI:
[Graphics_DX11]
AdapterVendorID=4318
AdapterDeviceID=4049
DisplayWidth=1920
DisplayHeight=1080
RefreshRate=60
DisplayableRefreshRate=60
AntiAliasingMode=1
VSync=1
EnvironmentQuality=3
TextureQuality=2
ShadowQuality=2
ReflectionQuality=2
GodRays=1
MotionBlur=0
SSAO=1
UseVolumetricFog=1
[Input]
SelectedInput=KeyboardMouse2
HighProfileToggle=0

XML:
<?xml version="1.0" encoding="UTF-16" standalone="no"?>
<GSA_SDK Version="2.1.17038654.0">
    <APPLICATION>
        <DISPLAYNAME Value="Assassin's Creed IV Black Flag" />
        <VERSIONNAME Value="1.0" />
        <INSTALLPATH Value="D:\Program Files (x86)\Assassins Creed IV Black Flag\" />
        <CONFIGPATH Value="C:\Users\xx\Documents\Assassin's Creed IV Black Flag" />
        <EXECUTABLE Value="AC4BFSP" />
        <EXECCMD Value="" />
    </APPLICATION>
</GSA_SDK>

Kod:
Text işte la :D
Hani şu normal yazı var ye o işte :P

Kod:
3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 2E 30 22 20 65 6E 63 6F 64 69 6E 67 3D 22 75 74 66 2D 38 22 3F 3E 0A 3C 61 64 64 6F 6E 20 61 64 64 6F 6E 5F 69 64 3D 22 53 74 65 61 6D 22 20 74 69 74 6C 65 3D 22 53 74 65 61 6D 20 41 75 74 68

Kod:
program Merhaba;
begin
  writeln ('Merhaba, dünya.')
end.

Kod:
' A "Hello, World!" program in Visual Basic.
Module Hello
  Sub Main()
     MsgBox("Merhaba, Dünya!") ' Display message on computer screen.
  End Sub
End Module

Java:
public class HelloWorld {

    public static void main(String[] args) {
        // Prints "Hello, World" to the terminal window.
        System.out.println("Hello, World");
    }

}

Kod:
function y = hello_world %#codegen
y = 'Hello World!';

%   Copyright 2010 The MathWorks, Inc.

Kod:
 unit Unit1;

 interface

 uses
   Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
   Dialogs, StdCtrls;

 type
   TForm1 = class(TForm)
     Label1: TLabel;      // The label we have added
     Button1: TButton;    // The button we have added
     procedure Button1Click(Sender: TObject);
   private
     { private declarations }
   public
     { public declarations }
   end;

 var
   Form1: TForm1;

 implementation

 {$R *.dfm}

 // The button action we have added
 procedure TForm1.Button1Click(Sender: TObject);
 begin
   Label1.Caption := 'Hello World';    // Label changed when button pressed
 end;

 end.

Bash:
case $chs in
1*)
 
    clear
    echo -e "\033[32m \nKANAL1 KAPATILIYOR ..\033[0m"
    cd /usr/game/cores/channel1/
    ./shut.sh &
    sleep 2
    echo -e "\033[32m \nKANAL1 KAPATILDI ..\033[0m"
    echo
 
;;

Kod:
<%
   HelloWorldLabel.Text = "Hello, world!";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
   <title>Untitled Page</title>
</head>
<body>
   <form id="form1" runat="server">
   <div>
       <asp:Label runat="server" id="HelloWorldLabel"></asp:Label>
   </div>
   </form>
</body>
</html>

Kod:
<VirtualHost *:80>
   ServerName domain.name.com
   DocumentRoot /var/www/html/
</VirtualHost>
 
Son düzenleme:
Geri
Üst