Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Better Stata syntax highlighting

    Standard:
    Code:
    foreach datafile of local filelist {  
        preserve
        import delimited using "`datafile'", clear varnames(1)
        save temp, replace
        restore
        merge 1:1 igz using ///
    bla bla bla
    as php
    PHP Code:
    foreach datafile of local filelist {  
        
    preserve
        import delimited using 
    "`datafile'"clear varnames(1)
        
    save tempreplace
        restore
        merge 1
    :1 igz using ///
    bla bla bla 
    Kind regards,
    Konrad
    Version: Stata/IC 13.1

  • #2
    Originally posted by Konrad Zdeb View Post
    Standard:
    Code:
    foreach datafile of local filelist {
    preserve
    import delimited using "`datafile'", clear varnames(1)
    save temp, replace
    restore
    merge 1:1 igz using ///
    bla bla bla
    `macro'
    as php
    PHP Code:
    foreach datafile of local filelist {
    preserve
    import delimited using 
    "`datafile'"clear varnames(1)
    save tempreplace
    restore
    `macro'
    merge 1:1 igz using ///
    bla bla bla 
    adding macro
    Kind regards,
    Konrad
    Version: Stata/IC 13.1

    Comment


    • #3
      I don't know if you're expecting comment. My comment would be that presenting code as PHP code is not obviously helpful. The colours appear distracting as well as arbitrary.

      Comment


      • #4
        Nick, I wasn't expecting a comment. I just wanted to see what PHP tag will do with the Stata code snippet.
        Kind regards,
        Konrad
        Version: Stata/IC 13.1

        Comment

        Working...
        X