Results 1 to 8 of 8
  1. #1
    sorpz's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    C:\Countries\Germany\Frankfurt\..
    Posts
    35
    Reputation
    23
    Thanks
    115
    My Mood
    Hungover

    [C#] BBCode Highlighter for thread posts by sorpz

    Hey Community,
    I don't know whether this is the right section to post this but I hope so ...
    This is a project i've just done quicky to use for another thread I'm creating rigth now and I just wanted to share it..

    I hope you'll enjoy it
    It does simply highlight code segments for c# and converts it into bbcode to use it in thread posts ..

    Example:
    Code:
    using System;
    using System.Collections.Generic;
    
    
    namespace SorpzFramework.Web.Visual {
    	class Program {
    		public static void Main(string[] args) {
    			// Sample Hello-World program...
    			Console.WriteLine("Hellow, World");
    			Console.ReadKey();
    		}
    	}
    }


    Scans:
    [1/46] https://www.virustotal.com/en/file/f...is/1376523940/ (for any reason 1 hit..)
    [0/22] CSharpToBBCodeConverter_by_sorpz.rar - Jottis Malwarescanner

    Greetz sorpz


    #1 edit:
    You could also use the included SorpzFramework.Web.dll to create your own highlighter...
    Just add it as reference to your project.. add 'using SorpzFramework.Web.Visuals;' and you'll be able to use BBThreadPostHighlighter type.. enjoy..
    If you want to get a more detailed information on how to use it just ask...
    Attached Thumbnails Attached Thumbnails
    Screenshot.PNG  

    <b>Downloadable Files</b> Downloadable Files
    Last edited by sorpz; 08-14-2013 at 05:59 PM. Reason: Additional information...
    Check out my...
    ProcessAccessor
    project. It got some cool features ..




  2. The Following 2 Users Say Thank You to sorpz For This Useful Post:

    netarcanjo (04-30-2014),Truely_Handsome (08-16-2013)

  3. #2
    welshe222's Avatar
    Join Date
    Aug 2010
    Gender
    female
    Location
    127.0.0.1
    Posts
    46
    Reputation
    114
    Thanks
    8
    My Mood
    Mellow
    Seem's extremely interesting, nice work.

  4. #3
    Truely_Handsome's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    Handsome ave.
    Posts
    99
    Reputation
    10
    Thanks
    3
    My Mood
    Inspired
    I am in no respect a coder. I honestly shouldn't be in this section but your post caught my eye. Can you explain to a non programmer, in what occasion could I use this tool for my own threads. What exactly can I turn into BBcode? Because I tried and do not understand.

    - Thank You for considering this Response. Enjoy the Thread Bump!

  5. #4
    sorpz's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    C:\Countries\Germany\Frankfurt\..
    Posts
    35
    Reputation
    23
    Thanks
    115
    My Mood
    Hungover
    Quote Originally Posted by Truely_Handsome View Post
    What exactly can I turn into BBcode? Because I tried and do not understand.
    Well as you should know forums such like this one we are currently at are using bbcode.. Mpgh doesn't highlight any of the code keywords when posting code, so I thought making a tool simple inserting the tags for keywords such as c#.. so at the left interface of the program i've attached you'll paste the code you want use in a post such as the example up in my main post. Then you'll have to click the go button and on the right side the converted code will appear which you'll have to paste into you post in some tags..

    So something like..
    Code:
    /* some multiline
     * comment...
     */
    public abstract class MyClass {
          public string SomeProperty{ get; set; }
          public void SomeMethod() {
                // some singleline comment...
                string someStr = "Hello";
                return;
          }
    }
    becomes..
    Code:
    /* some multiline
     * comment...
     */
    public abstract class MyClass {
          public string SomeProperty{ get; set; }
          public void SomeMethod() {
                // some singleline comment...
                string someStr = "Hello";
                return;
          }
    }
    Hope it helped
    Last edited by sorpz; 08-16-2013 at 06:14 AM. Reason: Debugging :D
    Check out my...
    ProcessAccessor
    project. It got some cool features ..




  6. The Following User Says Thank You to sorpz For This Useful Post:

    Truely_Handsome (08-16-2013)

  7. #5
    Truely_Handsome's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    Handsome ave.
    Posts
    99
    Reputation
    10
    Thanks
    3
    My Mood
    Inspired
    Quote Originally Posted by sorpz View Post
    Hope it helped
    Thank you, that did help. This is certainly advantage for Members like me with no level of coding experience. I will give this a shot, and thank you for taking the time to respond to my question. Adding thanks.

  8. #6
    sorpz's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    C:\Countries\Germany\Frankfurt\..
    Posts
    35
    Reputation
    23
    Thanks
    115
    My Mood
    Hungover
    Quote Originally Posted by Truely_Handsome View Post
    .. and thank you for taking the time to respond to my question.
    No problem m8
    Check out my...
    ProcessAccessor
    project. It got some cool features ..




  9. #7
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic
    Pretty damn cool bro.
    You should add C++ support.
    (If you PM me, I could help you code it.)

  10. #8
    sorpz's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    C:\Countries\Germany\Frankfurt\..
    Posts
    35
    Reputation
    23
    Thanks
    115
    My Mood
    Hungover
    Quote Originally Posted by Kenshin13 View Post
    .. add C++ support.
    (If you PM me, I could help you code it.)
    No pm needed bro. As mentioned in my main post you could easily download the dll and attach it to your own solution.. than you could start creating/using your own custom patterns for highlighting (RegEx) ..

    Check out my...
    ProcessAccessor
    project. It got some cool features ..




  11. The Following User Says Thank You to sorpz For This Useful Post:

    Kenshin13 (08-21-2013)

Similar Threads

  1. Screenshots Thread [ Post your best record here and brag off for everyone ]
    By wfefwefwef in forum CrossFire PH Discussions
    Replies: 2
    Last Post: 02-24-2013, 01:44 AM
  2. the habboman thread! post yours here and get it fed!
    By nobartholem in forum Spammers Corner
    Replies: 5
    Last Post: 03-29-2009, 03:16 PM
  3. (USER WAS BANNED FOR THIS POST)
    By Hispiforce in forum Spammers Corner
    Replies: 27
    Last Post: 12-03-2008, 05:38 AM
  4. [RELEASE]CHAMS/NORECOIL/NO SPREAD/NO FOG/FOR 100+ POST PEOPLE
    By 95king in forum Combat Arms Hacks & Cheats
    Replies: 43
    Last Post: 09-21-2008, 01:09 PM
  5. icon image?(sorr for dbl posting)
    By lolxsh0tx in forum WarRock - International Hacks
    Replies: 1
    Last Post: 07-30-2007, 06:45 AM