На главную Наши проекты:
Журнал   ·   Discuz!ML   ·   Wiki   ·   DRKB   ·   Помощь проекту
ПРАВИЛА FAQ Помощь Участники Календарь Избранное RSS
msm.ru
Страницы: (14) « Первая ... 12 13 [14]  все  ( Перейти к последнему сообщению )  
> Подсветка синтаксиса на форуме , Начата опытная эксплуатация :)
    ? Это про что?
      О, Тишайший освободился :)
      новой версии не появилось? ;)
        В смысле про что? Про глюк.
        Написал в [code=asm]...[/code] < и > , а он выдаёт &lt &gt
          Song, :). А что, уже кто-то посмотрел последнюю?
          JinX, правильно. htmlSpecialChars работает.
            Тут кто-то жаловался на отсутсвие комментариев в примере.
            Так вот...
            Прикреплённый файлПрикреплённый файл7.o.zip (0.82 Кбайт, скачиваний: 131)
              И версия с подновлённым файлом rhgribochek.
              Прикреплённый файлПрикреплённый файлhilight5.7.1.o.zip (15.76 Кбайт, скачиваний: 104)
                Анонсирована версия 3 подсветки на форуме Исходников.РУ
                В этот раз в исполнении Leprecon'а (модератор Си).
                Она примечательна тем, что имеет гибкую настройку и !позволяет изменять настройки для каждого конкретного раздела модератором этого раздела.
                Небольшие кусочки кода:

                ExpandedWrap disabled
                  unit AboutFormUnit;
                   
                  interface
                   
                  uses
                    Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
                    Dialogs, ExtCtrls, StdCtrls, ComCtrls;
                   
                  type
                    TAboutForm = class(TForm)
                      Panel1: TPanel;
                      Button1: TButton;
                      ProgressBar1: TProgressBar;
                      procedure FormCreate(Sender: TObject);
                    private
                      { Private declarations }
                    public
                      /* Public declarations */
                    end;
                   
                  var
                    AboutForm: TAboutForm;
                   
                  implementation
                   
                  {$R *.dfm}
                   
                  procedure TAboutForm.FormCreate(Sender: TObject);
                  // testing
                  begin
                   With Button1 Do
                    Begin
                   { comment }   SetWindowLong(Handle,GWL_STYLE,GetWindowLong(Handle,GWL_STYLE) or BS_MULTILINE); { comment begin
                     comment end }
                     Caption:='Загрузка {test2} данных,'#13#10'пожалуйста подождите...';  // Изменяем Caption
                    /* multiline
                      
                       comment */
                     i:=i + 10;
                     Inc(i);
                     r:=r + 0.5; // Дробное число
                     r:=r * $0A;  // Hex
                    End; {With}
                  end;
                   
                  end.


                ExpandedWrap disabled
                  <b> test2 </b>


                ExpandedWrap disabled
                  With TStringList.Create Do
                   try
                    r:=r * $0B;
                    S:=S1 + #32 + S2;
                    { Text }
                   finally
                    Free;
                   end;
                    { asm text }
                   asm
                    mov al,05h;
                    xnhg al,al;
                   end;


                Всячекого рода ашипки:
                Ex. 1:
                Source:
                ExpandedWrap disabled
                  procedure xyz;
                  begin
                    WriteLn('Hello // boys } and girlz');
                    WriteLn('How are you?');
                    This is 'not closed quote but a string
                    But this is not a string'
                    Testing "double quotes" in pascal
                    { Trying this // }
                    This is not a comment
                    // Normal comment {
                    This in not a comment too
                    // }
                    WriteLn('Hi!');
                    А попробую-ка я [b]вот это[/b].
                    { This is a bug, but a comment
                  end;

                ExpandedWrap disabled
                  procedure xyz;
                  begin
                    WriteLn('Hello // boys } and girlz');
                    WriteLn('How are you?');
                    This is 'not closed quote but a string
                    But this is not a string'
                    Testing "double quotes" in pascal
                    { Trying this // }
                    This is not a comment
                    // Normal comment {
                    This in not a comment too
                    // }
                    WriteLn('Hi!');
                    А попробую-ка я [b]вот это[/b].
                    { This is a bug, but a comment
                  end;


                Ex. 2:
                Source:
                ExpandedWrap disabled
                  begin
                    WriteLn('Hola {boyz//and} gelz!');
                    (* Коммент { - это просто скобка, не имею права использовать? :) *)
                    WriteLn('A gluk!');
                    { Коммент }
                    // More { glux
                  end.

                ExpandedWrap disabled
                  begin
                    WriteLn('Hola {boyz//and} gelz!');
                    (* Коммент { - это просто скобка, не имею права использовать? :) *)
                    WriteLn('A gluk!');
                    { Коммент }
                    // More { glux
                  end.


                Ex. 4:
                Source:
                ExpandedWrap disabled
                   
                  writeln readln;
                  exit;
                  asm;
                  begin
                  end;
                  (*\?+-:@$
                  is in external function ProcEdUre
                  ....{in in in in in in}
                  {$I-}
                  property read write
                  {$I ...}input,ouput,hi,addr

                ExpandedWrap disabled
                  writeln readln;
                  exit;
                  asm;
                  begin
                  end;
                  (*\?+-:@$
                  is in external function ProcEdUre
                  ....{in in in in in in}
                  {$I-}
                  property read write
                  {$I ...}input,ouput,hi,addr


                Ex. 5:
                Source:
                ExpandedWrap disabled
                  program Mine;
                  {This//That}WriteLn
                  end.

                ExpandedWrap disabled
                  program Mine;
                  {This//That}WriteLn
                  end.


                Ex. 6:
                Source:
                ExpandedWrap disabled
                  program His;
                  (*This{That*)WriteLn
                  end.

                ExpandedWrap disabled
                  program His;
                  (*This{That*)WriteLn
                  end.


                Ex. 7: (смайл :B )
                Source:
                ExpandedWrap disabled
                  begin
                     B := 0;
                     for i := 1 to N do
                       if a[i] > 0 then inc(B); // *
                     writeln(b);
                  end;

                ExpandedWrap disabled
                  begin
                     B := 0;
                     for i := 1 to N do
                       if a[i] > 0 then inc(B); // *
                     writeln(b);
                  end;


                ExpandedWrap disabled
                  [b]test2[/b]
                1 пользователей читают эту тему (1 гостей и 0 скрытых пользователей)
                0 пользователей:


                Рейтинг@Mail.ru
                [ Script execution time: 0,0432 ]   [ 14 queries used ]   [ Generated: 17.05.24, 08:46 GMT ]