<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Syntaxhervorhebung]]></title><description><![CDATA[<p>Hallo bin neu hier und<br />
ziemlicher Anfänger in c/c++. Möchte aber<br />
einen Editor für .uc dateien (UnrealScript für die unreal engine)<br />
machen.</p>
<p>Den Texteditor habe ich, brauche nur noch Syntaxhervorhebung<br />
und das der keine .txt dateien öffnet sondern .uc dateien.</p>
<p>Habe erstmal das text - Editor beispiel von Bloodshed dev-cpp genommen.<br />
Das besteht aus</p>
<p><strong>-Menu.rc<br />
-Main.c<br />
-Main.h</strong></p>
<p>hier die quellcodes:</p>
<p><strong>Menu.rc :</strong></p>
<pre><code class="language-csharp">#include &quot;Main.h&quot;

MAINMENU MENU 
{
 POPUP &quot;&amp;File&quot;
 {
  MENUITEM &quot;&amp;Open...&quot;, CM_FILE_OPEN
  MENUITEM &quot;Save &amp;As...&quot;, CM_FILE_SAVEAS
  MENUITEM SEPARATOR
  MENUITEM &quot;E&amp;xit&quot;, CM_FILE_EXIT
 }

 POPUP &quot;&amp;Help&quot;
 {
  MENUITEM &quot;&amp;About&quot;, CM_ABOUT
 }
}
</code></pre>
<p><strong>Main.c :</strong></p>
<pre><code class="language-csharp">#include &lt;windows.h&gt;

#include &quot;Main.h&quot;

static char g_szClassName[] = &quot;MyWindowClass&quot;;
static HINSTANCE g_hInst = NULL;

#define IDC_MAIN_TEXT   1001

BOOL LoadFile(HWND hEdit, LPSTR pszFileName)
{
   HANDLE hFile;
   BOOL bSuccess = FALSE;

   hFile = CreateFile(pszFileName, GENERIC_READ, FILE_SHARE_READ, NULL,
      OPEN_EXISTING, 0, 0);
   if(hFile != INVALID_HANDLE_VALUE)
   {
      DWORD dwFileSize;
      dwFileSize = GetFileSize(hFile, NULL);
      if(dwFileSize != 0xFFFFFFFF)
      {
         LPSTR pszFileText;
         pszFileText = (LPSTR)GlobalAlloc(GPTR, dwFileSize + 1);
         if(pszFileText != NULL)
         {
            DWORD dwRead;
            if(ReadFile(hFile, pszFileText, dwFileSize, &amp;dwRead, NULL))
            {
               pszFileText[dwFileSize] = 0; // Null terminator
               if(SetWindowText(hEdit, pszFileText))
                  bSuccess = TRUE; // It worked!
            }
            GlobalFree(pszFileText);
         }
      }
      CloseHandle(hFile);
   }
   return bSuccess;
}

BOOL SaveFile(HWND hEdit, LPSTR pszFileName)
{
   HANDLE hFile;
   BOOL bSuccess = FALSE;

   hFile = CreateFile(pszFileName, GENERIC_WRITE, 0, 0,
      CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
   if(hFile != INVALID_HANDLE_VALUE)
   {
      DWORD dwTextLength;
      dwTextLength = GetWindowTextLength(hEdit);
      if(dwTextLength &gt; 0)// No need to bother if there's no text.
      {
         LPSTR pszText;
         pszText = (LPSTR)GlobalAlloc(GPTR, dwTextLength + 1);
         if(pszText != NULL)
         {
            if(GetWindowText(hEdit, pszText, dwTextLength + 1))
            {
               DWORD dwWritten;
               if(WriteFile(hFile, pszText, dwTextLength, &amp;dwWritten, NULL))
                  bSuccess = TRUE;
            }
            GlobalFree(pszText);
         }
      }
      CloseHandle(hFile);
   }
   return bSuccess;
}

BOOL DoFileOpenSave(HWND hwnd, BOOL bSave)
{
   OPENFILENAME ofn;
   char szFileName[MAX_PATH];

   ZeroMemory(&amp;ofn, sizeof(ofn));
   szFileName[0] = 0;

   ofn.lStructSize = sizeof(ofn);
   ofn.hwndOwner = hwnd;
   ofn.lpstrFilter = &quot;Text Files (*.txt)\0*.txt\0All Files (*.*)\0*.*\0\0&quot;;
   ofn.lpstrFile = szFileName;
   ofn.nMaxFile = MAX_PATH;
   ofn.lpstrDefExt = &quot;txt&quot;;

   if(bSave)
   {
      ofn.Flags = OFN_EXPLORER | OFN_PATHMUSTEXIST | OFN_HIDEREADONLY |
         OFN_OVERWRITEPROMPT;

      if(GetSaveFileName(&amp;ofn))
      {
         if(!SaveFile(GetDlgItem(hwnd, IDC_MAIN_TEXT), szFileName))
         {
            MessageBox(hwnd, &quot;Save file failed.&quot;, &quot;Error&quot;,
               MB_OK | MB_ICONEXCLAMATION);
            return FALSE;
         }
      }
   }
   else
   {
      ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
      if(GetOpenFileName(&amp;ofn))
      {
         if(!LoadFile(GetDlgItem(hwnd, IDC_MAIN_TEXT), szFileName))
         {
            MessageBox(hwnd, &quot;Load of file failed.&quot;, &quot;Error&quot;,
               MB_OK | MB_ICONEXCLAMATION);
            return FALSE;
         }
      }
   }
   return TRUE;
}

LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
   switch(Message)
   {
      case WM_CREATE:
         CreateWindow(&quot;EDIT&quot;, &quot;&quot;,
            WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL | ES_MULTILINE |
               ES_WANTRETURN,
            CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,

            hwnd, (HMENU)IDC_MAIN_TEXT, g_hInst, NULL);

         SendDlgItemMessage(hwnd, IDC_MAIN_TEXT, WM_SETFONT,
            (WPARAM)GetStockObject(DEFAULT_GUI_FONT), MAKELPARAM(TRUE, 0));
      break;
      case WM_SIZE:
         if(wParam != SIZE_MINIMIZED)
            MoveWindow(GetDlgItem(hwnd, IDC_MAIN_TEXT), 0, 0, LOWORD(lParam),
               HIWORD(lParam), TRUE);
      break;
      case WM_SETFOCUS:
         SetFocus(GetDlgItem(hwnd, IDC_MAIN_TEXT));
      break;
      case WM_COMMAND:
         switch(LOWORD(wParam))
         {
            case CM_FILE_OPEN:
               DoFileOpenSave(hwnd, FALSE);
            break;
            case CM_FILE_SAVEAS:
               DoFileOpenSave(hwnd, TRUE);
            break;
            case CM_FILE_EXIT:
               PostMessage(hwnd, WM_CLOSE, 0, 0);
            break;
            case CM_\1:
               MessageBox (NULL, &quot;File Editor for Windows !\n Using the Win32 API&quot; , &quot;About...&quot;, 0);
         }
      break;
      case WM_CLOSE:
         DestroyWindow(hwnd);
      break;
      case WM_DESTROY:
         PostQuitMessage(0);
      break;
      default:
         return DefWindowProc(hwnd, Message, wParam, lParam);
   }
   return 0;
}

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
   LPSTR lpCmdLine, int nCmdShow)
{
   WNDCLASSEX WndClass;
   HWND hwnd;
   MSG Msg;

   g_hInst = hInstance;

   WndClass.cbSize        = sizeof(WNDCLASSEX);
   WndClass.style         = 0;
   WndClass.lpfnWndProc   = WndProc;
   WndClass.cbClsExtra    = 0;
   WndClass.cbWndExtra    = 0;
   WndClass.hInstance     = g_hInst;
   WndClass.hIcon         = LoadIcon(NULL, IDI_APPLICATION);
   WndClass.hCursor       = LoadCursor(NULL, IDC_ARROW);
   WndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
   WndClass.lpszMenuName  = &quot;MAINMENU&quot;;
   WndClass.lpszClassName = g_szClassName;
   WndClass.hIconSm       = LoadIcon(NULL, IDI_APPLICATION);

   if(!RegisterClassEx(&amp;WndClass))
   {
      MessageBox(0, &quot;Window Registration Failed!&quot;, &quot;Error!&quot;,
         MB_ICONEXCLAMATION | MB_OK | MB_SYSTEMMODAL);
      return 0;
   }

   hwnd = CreateWindowEx(
      WS_EX_CLIENTEDGE,
      g_szClassName,
      &quot;File Editor Example Program&quot;,
      WS_OVERLAPPEDWINDOW,
      CW_USEDEFAULT, CW_USEDEFAULT, 320, 240,
      NULL, NULL, g_hInst, NULL);

   if(hwnd == NULL)
   {
      MessageBox(0, &quot;Window Creation Failed!&quot;, &quot;Error!&quot;,
         MB_ICONEXCLAMATION | MB_OK | MB_SYSTEMMODAL);
      return 0;
   }

   ShowWindow(hwnd, nCmdShow);
   UpdateWindow(hwnd);

   while(GetMessage(&amp;Msg, NULL, 0, 0))
   {
      TranslateMessage(&amp;Msg);
      DispatchMessage(&amp;Msg);
   }
   return Msg.wParam;
}
</code></pre>
<p><strong>Main.h</strong></p>
<pre><code class="language-csharp">#define CM_FILE_SAVEAS	9072
#define CM_FILE_EXIT	9071
#define CM_FILE_OPEN	9070
#define CM_ABOUT        9069
</code></pre>
<p>Kann mir vllt. jemand ein<br />
beispiel für eine Syntaxhervorhebung<br />
posten das ich nur noch die codes und<br />
die farben ändern muss? Und mir schreiben wie<br />
ich das da einfüge?</p>
<p>Und kann mir jemand sagen wie ich das machen kann das<br />
der .uc dateien öffnet und keine txt dateien?</p>
<p>Hoffe ich habe ins richtige Forum gepostet <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
und danke im voraus für alle Antworten!!<br />
Hoffe mir kann jemand helfen</p>
<p>Also wie gesagt, das text programm ist ein<br />
beispiel von Bloodshed Dev-cpp, findet ihr unter<br />
\Dev-Cpp\Examples\FileEditor falls jemand das Programm hat.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/229028/syntaxhervorhebung</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 07:21:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/229028.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 06 Dec 2008 12:26:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Syntaxhervorhebung on Sat, 06 Dec 2008 12:27:32 GMT]]></title><description><![CDATA[<p>Hallo bin neu hier und<br />
ziemlicher Anfänger in c/c++. Möchte aber<br />
einen Editor für .uc dateien (UnrealScript für die unreal engine)<br />
machen.</p>
<p>Den Texteditor habe ich, brauche nur noch Syntaxhervorhebung<br />
und das der keine .txt dateien öffnet sondern .uc dateien.</p>
<p>Habe erstmal das text - Editor beispiel von Bloodshed dev-cpp genommen.<br />
Das besteht aus</p>
<p><strong>-Menu.rc<br />
-Main.c<br />
-Main.h</strong></p>
<p>hier die quellcodes:</p>
<p><strong>Menu.rc :</strong></p>
<pre><code class="language-csharp">#include &quot;Main.h&quot;

MAINMENU MENU 
{
 POPUP &quot;&amp;File&quot;
 {
  MENUITEM &quot;&amp;Open...&quot;, CM_FILE_OPEN
  MENUITEM &quot;Save &amp;As...&quot;, CM_FILE_SAVEAS
  MENUITEM SEPARATOR
  MENUITEM &quot;E&amp;xit&quot;, CM_FILE_EXIT
 }

 POPUP &quot;&amp;Help&quot;
 {
  MENUITEM &quot;&amp;About&quot;, CM_ABOUT
 }
}
</code></pre>
<p><strong>Main.c :</strong></p>
<pre><code class="language-csharp">#include &lt;windows.h&gt;

#include &quot;Main.h&quot;

static char g_szClassName[] = &quot;MyWindowClass&quot;;
static HINSTANCE g_hInst = NULL;

#define IDC_MAIN_TEXT   1001

BOOL LoadFile(HWND hEdit, LPSTR pszFileName)
{
   HANDLE hFile;
   BOOL bSuccess = FALSE;

   hFile = CreateFile(pszFileName, GENERIC_READ, FILE_SHARE_READ, NULL,
      OPEN_EXISTING, 0, 0);
   if(hFile != INVALID_HANDLE_VALUE)
   {
      DWORD dwFileSize;
      dwFileSize = GetFileSize(hFile, NULL);
      if(dwFileSize != 0xFFFFFFFF)
      {
         LPSTR pszFileText;
         pszFileText = (LPSTR)GlobalAlloc(GPTR, dwFileSize + 1);
         if(pszFileText != NULL)
         {
            DWORD dwRead;
            if(ReadFile(hFile, pszFileText, dwFileSize, &amp;dwRead, NULL))
            {
               pszFileText[dwFileSize] = 0; // Null terminator
               if(SetWindowText(hEdit, pszFileText))
                  bSuccess = TRUE; // It worked!
            }
            GlobalFree(pszFileText);
         }
      }
      CloseHandle(hFile);
   }
   return bSuccess;
}

BOOL SaveFile(HWND hEdit, LPSTR pszFileName)
{
   HANDLE hFile;
   BOOL bSuccess = FALSE;

   hFile = CreateFile(pszFileName, GENERIC_WRITE, 0, 0,
      CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
   if(hFile != INVALID_HANDLE_VALUE)
   {
      DWORD dwTextLength;
      dwTextLength = GetWindowTextLength(hEdit);
      if(dwTextLength &gt; 0)// No need to bother if there's no text.
      {
         LPSTR pszText;
         pszText = (LPSTR)GlobalAlloc(GPTR, dwTextLength + 1);
         if(pszText != NULL)
         {
            if(GetWindowText(hEdit, pszText, dwTextLength + 1))
            {
               DWORD dwWritten;
               if(WriteFile(hFile, pszText, dwTextLength, &amp;dwWritten, NULL))
                  bSuccess = TRUE;
            }
            GlobalFree(pszText);
         }
      }
      CloseHandle(hFile);
   }
   return bSuccess;
}

BOOL DoFileOpenSave(HWND hwnd, BOOL bSave)
{
   OPENFILENAME ofn;
   char szFileName[MAX_PATH];

   ZeroMemory(&amp;ofn, sizeof(ofn));
   szFileName[0] = 0;

   ofn.lStructSize = sizeof(ofn);
   ofn.hwndOwner = hwnd;
   ofn.lpstrFilter = &quot;Text Files (*.txt)\0*.txt\0All Files (*.*)\0*.*\0\0&quot;;
   ofn.lpstrFile = szFileName;
   ofn.nMaxFile = MAX_PATH;
   ofn.lpstrDefExt = &quot;txt&quot;;

   if(bSave)
   {
      ofn.Flags = OFN_EXPLORER | OFN_PATHMUSTEXIST | OFN_HIDEREADONLY |
         OFN_OVERWRITEPROMPT;

      if(GetSaveFileName(&amp;ofn))
      {
         if(!SaveFile(GetDlgItem(hwnd, IDC_MAIN_TEXT), szFileName))
         {
            MessageBox(hwnd, &quot;Save file failed.&quot;, &quot;Error&quot;,
               MB_OK | MB_ICONEXCLAMATION);
            return FALSE;
         }
      }
   }
   else
   {
      ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
      if(GetOpenFileName(&amp;ofn))
      {
         if(!LoadFile(GetDlgItem(hwnd, IDC_MAIN_TEXT), szFileName))
         {
            MessageBox(hwnd, &quot;Load of file failed.&quot;, &quot;Error&quot;,
               MB_OK | MB_ICONEXCLAMATION);
            return FALSE;
         }
      }
   }
   return TRUE;
}

LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
   switch(Message)
   {
      case WM_CREATE:
         CreateWindow(&quot;EDIT&quot;, &quot;&quot;,
            WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL | ES_MULTILINE |
               ES_WANTRETURN,
            CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,

            hwnd, (HMENU)IDC_MAIN_TEXT, g_hInst, NULL);

         SendDlgItemMessage(hwnd, IDC_MAIN_TEXT, WM_SETFONT,
            (WPARAM)GetStockObject(DEFAULT_GUI_FONT), MAKELPARAM(TRUE, 0));
      break;
      case WM_SIZE:
         if(wParam != SIZE_MINIMIZED)
            MoveWindow(GetDlgItem(hwnd, IDC_MAIN_TEXT), 0, 0, LOWORD(lParam),
               HIWORD(lParam), TRUE);
      break;
      case WM_SETFOCUS:
         SetFocus(GetDlgItem(hwnd, IDC_MAIN_TEXT));
      break;
      case WM_COMMAND:
         switch(LOWORD(wParam))
         {
            case CM_FILE_OPEN:
               DoFileOpenSave(hwnd, FALSE);
            break;
            case CM_FILE_SAVEAS:
               DoFileOpenSave(hwnd, TRUE);
            break;
            case CM_FILE_EXIT:
               PostMessage(hwnd, WM_CLOSE, 0, 0);
            break;
            case CM_\1:
               MessageBox (NULL, &quot;File Editor for Windows !\n Using the Win32 API&quot; , &quot;About...&quot;, 0);
         }
      break;
      case WM_CLOSE:
         DestroyWindow(hwnd);
      break;
      case WM_DESTROY:
         PostQuitMessage(0);
      break;
      default:
         return DefWindowProc(hwnd, Message, wParam, lParam);
   }
   return 0;
}

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
   LPSTR lpCmdLine, int nCmdShow)
{
   WNDCLASSEX WndClass;
   HWND hwnd;
   MSG Msg;

   g_hInst = hInstance;

   WndClass.cbSize        = sizeof(WNDCLASSEX);
   WndClass.style         = 0;
   WndClass.lpfnWndProc   = WndProc;
   WndClass.cbClsExtra    = 0;
   WndClass.cbWndExtra    = 0;
   WndClass.hInstance     = g_hInst;
   WndClass.hIcon         = LoadIcon(NULL, IDI_APPLICATION);
   WndClass.hCursor       = LoadCursor(NULL, IDC_ARROW);
   WndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
   WndClass.lpszMenuName  = &quot;MAINMENU&quot;;
   WndClass.lpszClassName = g_szClassName;
   WndClass.hIconSm       = LoadIcon(NULL, IDI_APPLICATION);

   if(!RegisterClassEx(&amp;WndClass))
   {
      MessageBox(0, &quot;Window Registration Failed!&quot;, &quot;Error!&quot;,
         MB_ICONEXCLAMATION | MB_OK | MB_SYSTEMMODAL);
      return 0;
   }

   hwnd = CreateWindowEx(
      WS_EX_CLIENTEDGE,
      g_szClassName,
      &quot;File Editor Example Program&quot;,
      WS_OVERLAPPEDWINDOW,
      CW_USEDEFAULT, CW_USEDEFAULT, 320, 240,
      NULL, NULL, g_hInst, NULL);

   if(hwnd == NULL)
   {
      MessageBox(0, &quot;Window Creation Failed!&quot;, &quot;Error!&quot;,
         MB_ICONEXCLAMATION | MB_OK | MB_SYSTEMMODAL);
      return 0;
   }

   ShowWindow(hwnd, nCmdShow);
   UpdateWindow(hwnd);

   while(GetMessage(&amp;Msg, NULL, 0, 0))
   {
      TranslateMessage(&amp;Msg);
      DispatchMessage(&amp;Msg);
   }
   return Msg.wParam;
}
</code></pre>
<p><strong>Main.h</strong></p>
<pre><code class="language-csharp">#define CM_FILE_SAVEAS	9072
#define CM_FILE_EXIT	9071
#define CM_FILE_OPEN	9070
#define CM_ABOUT        9069
</code></pre>
<p>Kann mir vllt. jemand ein<br />
beispiel für eine Syntaxhervorhebung<br />
posten das ich nur noch die codes und<br />
die farben ändern muss? Und mir schreiben wie<br />
ich das da einfüge?</p>
<p>Und kann mir jemand sagen wie ich das machen kann das<br />
der .uc dateien öffnet und keine txt dateien?</p>
<p>Hoffe ich habe ins richtige Forum gepostet <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
und danke im voraus für alle Antworten!!<br />
Hoffe mir kann jemand helfen</p>
<p>Also wie gesagt, das text programm ist ein<br />
beispiel von Bloodshed Dev-cpp, findet ihr unter<br />
\Dev-Cpp\Examples\FileEditor falls jemand das Programm hat.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1626126</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1626126</guid><dc:creator><![CDATA[Lukas..]]></dc:creator><pubDate>Sat, 06 Dec 2008 12:27:32 GMT</pubDate></item><item><title><![CDATA[Reply to Syntaxhervorhebung on Sat, 06 Dec 2008 12:28:06 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-1819.html" rel="nofollow">rüdiger</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-8.html" rel="nofollow">Rund um die Programmierung</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-4.html" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1626127</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1626127</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sat, 06 Dec 2008 12:28:06 GMT</pubDate></item><item><title><![CDATA[Reply to Syntaxhervorhebung on Sat, 06 Dec 2008 12:41:05 GMT]]></title><description><![CDATA[<p>Lukas.. schrieb:</p>
<blockquote>
<p>Hallo bin neu hier und<br />
ziemlicher Anfänger in c/c++. Möchte aber<br />
einen Editor für .uc dateien (UnrealScript für die unreal engine)<br />
machen.</p>
<p>Den Texteditor habe ich, brauche nur noch Syntaxhervorhebung<br />
und das der keine .txt dateien öffnet sondern .uc dateien.</p>
<p>Habe erstmal das text - Editor beispiel von Bloodshed dev-cpp genommen.<br />
Das besteht aus<br />
[...]<br />
Kann mir vllt. jemand ein<br />
beispiel für eine Syntaxhervorhebung<br />
posten das ich nur noch die codes und<br />
die farben ändern muss? Und mir schreiben wie<br />
ich das da einfüge?</p>
<p>Und kann mir jemand sagen wie ich das machen kann das<br />
der .uc dateien öffnet und keine txt dateien?</p>
</blockquote>
<p>Programmieren 2008: Man kopiert sich Code den man überhaupt nicht versteht und postet ihn dann in einem Forum, damit andere den Rest der Arbeit für einen machen... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1626133</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1626133</guid><dc:creator><![CDATA[Echt Scheiße]]></dc:creator><pubDate>Sat, 06 Dec 2008 12:41:05 GMT</pubDate></item><item><title><![CDATA[Reply to Syntaxhervorhebung on Sat, 06 Dec 2008 13:08:57 GMT]]></title><description><![CDATA[<p>warum immer alles selber machen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /><br />
[url]<br />
<a href="http://notepad-plus.sourceforge.net/de/site.htm%5B/url%5D" rel="nofollow">http://notepad-plus.sourceforge.net/de/site.htm[/url]</a> :xmas2:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1626148</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1626148</guid><dc:creator><![CDATA[txt++]]></dc:creator><pubDate>Sat, 06 Dec 2008 13:08:57 GMT</pubDate></item><item><title><![CDATA[Reply to Syntaxhervorhebung on Sat, 06 Dec 2008 16:28:21 GMT]]></title><description><![CDATA[<p>Nein ist nicht so das ich nix versteh, bin halt noch<br />
anfänger. Das is ja längst nicht alles was geändert wird, das<br />
ist nur das was ich nicht kann.<br />
Und ich muss den selber machen weil ich bis jetzt<br />
keinen Editor gefunden hat der Syntaxhervorhebung für<br />
UnrealScript hat.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1626206</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1626206</guid><dc:creator><![CDATA[Lukas..]]></dc:creator><pubDate>Sat, 06 Dec 2008 16:28:21 GMT</pubDate></item><item><title><![CDATA[Reply to Syntaxhervorhebung on Mon, 08 Dec 2008 10:39:40 GMT]]></title><description><![CDATA[<p>Jo, würde txt++ zustimmen und dir empfehlen, Notepad++ zu nehmen. Da kann man relativ einfach neue Sprachen definieren.</p>
<p>Und dann fängst du mit was einfacherem an. Sonst wird das nämlich erfahrungsgemäß nichts <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1626872</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1626872</guid><dc:creator><![CDATA[mad_martin]]></dc:creator><pubDate>Mon, 08 Dec 2008 10:39:40 GMT</pubDate></item><item><title><![CDATA[Reply to Syntaxhervorhebung on Mon, 08 Dec 2008 12:11:35 GMT]]></title><description><![CDATA[<p>mad_martin schrieb:</p>
<blockquote>
<p>Jo, würde txt++ zustimmen und dir empfehlen, Notepad++ zu nehmen. Da kann man relativ einfach neue Sprachen definieren.</p>
<p>Und dann fängst du mit was einfacherem an. Sonst wird das nämlich erfahrungsgemäß nichts <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
</blockquote>
<p>Ja ok, suche dann mal nach tutorials dafür. Danke für eure Hilfe!</p>
<p>Edit: Habe jetzt gesucht aber nix brauchbares gefunden an Tutorials.<br />
Wenn jemand ein leicht verständliches Tutorial weiß, bitte link<br />
posten. Danke im voraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1626903</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1626903</guid><dc:creator><![CDATA[Lukas..]]></dc:creator><pubDate>Mon, 08 Dec 2008 12:11:35 GMT</pubDate></item><item><title><![CDATA[Reply to Syntaxhervorhebung on Mon, 08 Dec 2008 12:45:55 GMT]]></title><description><![CDATA[<p>Einen Editor zu bauen mit Syntaxcheck gehört mit Sicherheit <strong>nicht</strong> zu Dingen die Anfänger anzuraten sind. Das ist wirklich komplex!<br />
Insofern findest Du garantiert kein Tutorial sondern höchstens fertigen Code.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1626935</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1626935</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Mon, 08 Dec 2008 12:45:55 GMT</pubDate></item><item><title><![CDATA[Reply to Syntaxhervorhebung on Mon, 08 Dec 2008 15:11:11 GMT]]></title><description><![CDATA[<p>Meinen Vorrednern kann ich im Prinzip nur zustimmen.</p>
<p>Es gibt jedoch ein Tutorial als absolute Ausnahme:<br />
&quot;Design and Implementation of a Win32 Text Editor&quot; <a href="http://www.catch22.net/tuts/neatpad" rel="nofollow">http://www.catch22.net/tuts/neatpad</a></p>
<p>Dieses mehrteilige Tutorial ist zwar leicht verständlich, <strong>setzt aber weiterhin grundlegende Vorkenntnisse des Win32 API voraus</strong>!</p>
<p>Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1627043</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1627043</guid><dc:creator><![CDATA[Mmacher]]></dc:creator><pubDate>Mon, 08 Dec 2008 15:11:11 GMT</pubDate></item><item><title><![CDATA[Reply to Syntaxhervorhebung on Thu, 11 Dec 2008 11:07:30 GMT]]></title><description><![CDATA[<p>Mmacher schrieb:</p>
<blockquote>
<p>Meinen Vorrednern kann ich im Prinzip nur zustimmen.</p>
<p>Es gibt jedoch ein Tutorial als absolute Ausnahme:<br />
&quot;Design and Implementation of a Win32 Text Editor&quot; <a href="http://www.catch22.net/tuts/neatpad" rel="nofollow">http://www.catch22.net/tuts/neatpad</a></p>
<p>Dieses mehrteilige Tutorial ist zwar leicht verständlich, <strong>setzt aber weiterhin grundlegende Vorkenntnisse des Win32 API voraus</strong>!</p>
<p>Martin</p>
</blockquote>
<p>Danke. Ich kann ja mal gucken wie weit ich komme,<br />
ich lern ja auch schön weiter, also werd ich das vllt.<br />
bald können <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1628771</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1628771</guid><dc:creator><![CDATA[Lukas..]]></dc:creator><pubDate>Thu, 11 Dec 2008 11:07:30 GMT</pubDate></item></channel></rss>