Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    syntax highlighting in Knitr ".Rnw" of Latex and R

    General Discussion
    2
    2
    110
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Moriand
      Moriand last edited by

      Hi, I’ve been looking for some plugin to highlight the reserved text of Latex and knitr, is there any way to achieve this style?
      For example
      \documentclass{}[]
      \usepackage{}[]
      \begin{}
      \end{}
      \section{}
      \subsection{}
      \subsection*{}
      \newcommand{}[]
      \cite{}
      …
      and most importantly in knitr

      <>=
      here I want the background to be painted gray
      @
      

      I need your help, it is possible to achieve this style. How is it created?

      1 Reply Last reply Reply Quote 0
      • PeterJones
        PeterJones last edited by

        An overview of the User Defined Languages (accessed through Language > Define Your Language…) can be found in the User Defined Languages page in the official docs. And Ivan Radić has created the definitive guide to the nuts and bolts of UDL version 2.1, which is available at https://ivan-radic.github.io/udl-documentation/ – so definitive that’s it’s linked directly from the Notepad++ UDL dialog.

        After looking through those docs, make an attempt at the UDL for Knitr. If you get stuck, show us what you have, how it’s not working for you, and what you would like it to do instead.

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors