Community
    • 登入

    How can I change the color only the '@' ?

    已排程 已置頂 已鎖定 已移動 Help wanted · · · – – – · · ·
    3 貼文 2 Posters 4.0k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • maggioriniM
      maggiorini
      最後由 maggiorini 編輯

      Hello,

      I use the Notepad++ to create many archive in Sybase language, my variables start with @, for ex: @name, and I want to change the color of variables to red, all words starting with @

      Can I do this ?

      Thanks, and sorry about my English

      1 條回覆 最後回覆 回覆 引用 0
      • glennfromiowaG
        glennfromiowa
        最後由 編輯

        Hi maggiorini,

        Are you creating a User Defined Language (UDF) for Sybase? If so, in the Keyword Lists, define a list as @ and tick the Prefix box. Then click the Styler button for that list, and set the Foreground color to red.

        If you are not creating a UDF, are you using one of the language definitions? If you would like to create a UDF, even to only color these variables, go to the Language menu, select Define Your Language… Click on the Create New… button at the top, name it, and then make the changes above. You can add Keywords, Delimiters, etc. as desired. Put the file extension in the Ext. box at the top, Save As, and then any files opened with that extension should have those variables highlighted. Or you can manually select the language from the Language menu.

        Sincerely,

        Glenn From Iowa

        1 條回覆 最後回覆 回覆 引用 0
        • maggioriniM
          maggiorini
          最後由 編輯

          Hi Glenn, thanks about your answer.

          I think not explained properly my doubts.

          The Sql Language serves me very good, but I need to add in the SQL language the ‘@’ to change the variables color.

          If I create a new language, i´ll need to add all things about SQL language manually, for example commands, operators, and etc

          I need only add the ‘@’ in SQL language that already exists.

          I dont know, if is possible create a new language and import all things that exists in a SQL language, and after that, I add only ‘@’.

          Are you understood my problem ?

          Thanks again, and sorry about my English, my English is not good yet.

          1 條回覆 最後回覆 回覆 引用 0
          • 第一個貼文
            最後的貼文
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors