Forum - syntax highlighting for C# and C++ is falling back to C | Page 3

Discussion in 'Website/Forum/Wiki Feedback' started by Vasilich, June 14, 2014.

  1. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,620
    Likes Received:
    2,652
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,603 / 29
    Home Country:
    Ukraine Ukraine
    Show System Specs
    Outstripped :)

    Code (C#):
    1.     /// <summary>
    2.     /// Catch GUI to full screen toggle, set property #mvCentral.isPlaying to enable pop-up
    3.     /// </summary>
    4.     void GUIGraphicsContext_OnVideoWindowChanged()
    5.     {
    6.       // make sure we are playing some video and the video source is us
    7.       if (GUIGraphicsContext.IsPlayingVideo && (GUIPropertyManager.GetProperty("#mvCentral.isPlaying") == "true"))
    8.       {
    9.         if (GUIWindowManager.IsSwitchingToNewWindow)
    10.         {
    11.           if (GUIGraphicsContext.IsFullScreenVideo)
    12.           {
    13.             if (GUIPropertyManager.GetProperty("#mvCentral.Play.Started") == "false")
    14.             {
    15.               clearPropertyTimer.Enabled = true;
    16.               logger.Debug("Set #mvCentral.Play.Started = true");
    17.               GUIPropertyManager.SetProperty("#mvCentral.Play.Started", "true");
    18.             }
    19.           }
    20.         }
    21.       }
    22.     }
    Comments are merged with the rest of the text. It is necessary to change the color of the main text.


     
    Last edited by a moderator: December 11, 2015
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Vasilich
    • Team MediaPortal

    Vasilich Test Group

    Joined:
    August 30, 2009
    Messages:
    3,389
    Likes Received:
    608
    Gender:
    Male
    Occupation:
    Developer
    Location:
    Germany, Mayence
    Ratings:
    +1,172 / 2
    Home Country:
    Russian Federation Russian Federation
    Show System Specs
    @high can you try to change the color in line 199 from
    5 => 'color: #000000;'
    to
    5 => 'color: #020202;'
    as it seems that some colors will be replaced when used in code blocks? particularly black 000000 will be changed to gray 808080 as i see....
     
  4. high
    • Team MediaPortal
    • IT-Admin

    high Administrator

    Joined:
    August 31, 2004
    Messages:
    4,739
    Likes Received:
    3,112
    Gender:
    Male
    Occupation:
    Sysadmin
    Location:
    Isselburg/NRW
    Ratings:
    +4,825 / 6
    Home Country:
    Germany Germany
    Show System Specs
    line 199 is changed
     
    • Thank You! Thank You! x 2
  5. Vasilich
    • Team MediaPortal

    Vasilich Test Group

    Joined:
    August 30, 2009
    Messages:
    3,389
    Likes Received:
    608
    Gender:
    Male
    Occupation:
    Developer
    Location:
    Germany, Mayence
    Ratings:
    +1,172 / 2
    Home Country:
    Russian Federation Russian Federation
    Show System Specs
    thank you. Though it doesn't work, as the main problem is that there are not matched words that get grayed out (e.g. word "Main" below):
    upload_2015-12-11_12-14-19.png

    Do you have any idea how to change default text color in code section? some geshi settings in CSS?
     
  6. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,620
    Likes Received:
    2,652
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,603 / 29
    Home Country:
    Ukraine Ukraine
    Show System Specs
    @high Change plz in geshi.php line 454 from:
    Code (Text):
    1.     var $code_style = 'font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"';
    to
    Code (Text):
    1.     var $code_style = 'font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top; color: #000000;"';
    :D
    I feel that it is necessary to learn php and C# :) and then I look and do not understand anything :) :coffee:
     
    Last edited: December 11, 2015
  7. Vasilich
    • Team MediaPortal

    Vasilich Test Group

    Joined:
    August 30, 2009
    Messages:
    3,389
    Likes Received:
    608
    Gender:
    Male
    Occupation:
    Developer
    Location:
    Germany, Mayence
    Ratings:
    +1,172 / 2
    Home Country:
    Russian Federation Russian Federation
    Show System Specs
    @high do you plan to put these changes into MP2016 style? right now the code for C# and C++ is broken again,
     
    • Agree Agree x 1
  8. high
    • Team MediaPortal
    • IT-Admin

    high Administrator

    Joined:
    August 31, 2004
    Messages:
    4,739
    Likes Received:
    3,112
    Gender:
    Male
    Occupation:
    Sysadmin
    Location:
    Isselburg/NRW
    Ratings:
    +4,825 / 6
    Home Country:
    Germany Germany
    Show System Specs
    Code (Text):
    1. <option value="code=cpp">C++</option>
    2. <option value="code=csharp">C#</option>
    added to that style, changes to geshi.php should be still in
     
    • Thank You! Thank You! x 2
  9. Vasilich
    • Team MediaPortal

    Vasilich Test Group

    Joined:
    August 30, 2009
    Messages:
    3,389
    Likes Received:
    608
    Gender:
    Male
    Occupation:
    Developer
    Location:
    Germany, Mayence
    Ratings:
    +1,172 / 2
    Home Country:
    Russian Federation Russian Federation
    Show System Specs
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!