Community
    • 登入

    Highlight CSS codes in PHP files in Notepad++

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

      I have an PHP file, which Notepad++ correctly highlights any PHP code. Inside of this file, I have some Javascript, which is properly recognized between the and tags.

      However, I have some CSS codes that not being properly highlighted in PHP files. Where I can do highlight CSS codes in PHP files same JavaScript codes ?

      Claudia FrankC 1 條回覆 最後回覆 回覆 引用 0
      • Claudia FrankC
        Claudia Frank @DM Pro
        最後由 編輯

        @DM-Pro

        these are two different lexers, so there is no easy solution currently.
        The reason why your java script gets colored is that there is no php lexer either,
        you are using the html lexer which itself has support for additional sublexers
        like php, js, python, xml … but unfortunately no support for css.

        Cheers
        Claudia

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