Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 16 of 16

Thread: New Syntax Highlighting Feature!

  1. #1
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 286 Times in 225 Posts
    Blog Entries
    4

    Thumbs up New Syntax Highlighting Feature!

    Hello everyone.

    The Java Programming Forums team have been working on this for a while. After months of testing and brain ache, I am happy to introduce the new Syntax Highlighting feature!

    This will eventually replace the current code tag we use.

    Check this out:

    import java.text.SimpleDateFormat;
    import java.util.Calendar;
     
    public class Time {
     
    	public static final String DATE_FORMAT_NOW = "dd-MM-yyyy HH:mm:ss";
    	public static String dt;
     
    	public static String DateTime() {
    		Calendar cal = Calendar.getInstance();
    		SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);
    		return sdf.format(cal.getTime());
    	}
     
    	public static void getTime() {
     
    		Time dAT = new Time();
    		dt = dAT.DateTime();
     
    	}
    }

    Lovely or what!

    One great feature is that you can click certain keywords and it will take you to the Java API. For example, try clicking String. Very handy.

    You can now use this in your own posts by using this BBCode:

    [highlight=Java] code here [/highlight]

    I will soon be adding a button to automatically paste in the BBCode. For now, it will need to be entered manually.

    We have tested this on several browsers but if any of you experience any bugs, please let one of the moderators know as soon as possible.

    Thanks.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

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

    copeg (June 30th, 2010), Json (June 30th, 2010), Lord.Quackstar (June 30th, 2010)


  3. #2
    Member Faz's Avatar
    Join Date
    Mar 2010
    Posts
    97
    Thanks
    5
    Thanked 14 Times in 14 Posts

    Default Re: New Syntax Highlighting Feature!

    It's Fantastic.

  4. #3
    Member
    Join Date
    May 2010
    Posts
    39
    Thanks
    4
    Thanked 3 Times in 3 Posts

    Default Re: New Syntax Highlighting Feature!

    Cheers, happy the class is named Time.

  5. #4
    Member
    Join Date
    May 2010
    Posts
    38
    Thanks
    1
    Thanked 8 Times in 7 Posts

    Default Re: New Syntax Highlighting Feature!

    You should try and replace existing code tags with that one. This way when people browse old topics, they can still get the syntax highlighting.

    Pretty neat though!

  6. #5
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 286 Times in 225 Posts
    Blog Entries
    4

    Red face Re: New Syntax Highlighting Feature!

    Quote Originally Posted by Lord.Quackstar View Post
    You should try and replace existing code tags with that one. This way when people browse old topics, they can still get the syntax highlighting.

    Pretty neat though!
    Yes this may happen. We are looking into it..

    We have to be careful editing the core functions of the forums due to future updates etc.

    I'll be sure to keep everyone updated of any changes.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

  7. #6
    Member
    Join Date
    Jun 2010
    Posts
    48
    Thanks
    12
    Thanked 2 Times in 2 Posts

    Default Re: New Syntax Highlighting Feature!

    Awesome !!

  8. #7
    Junior Member
    Join Date
    Jun 2010
    Posts
    9
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: New Syntax Highlighting Feature!

    This is nice

  9. #8
    Junior Member
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: New Syntax Highlighting Feature!

    Very nice look

  10. #9
    Junior Member
    Join Date
    Mar 2010
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: New Syntax Highlighting Feature!

    So what's new here?

  11. #10
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 286 Times in 225 Posts
    Blog Entries
    4

    Thumbs up Re: New Syntax Highlighting Feature!

    Quote Originally Posted by Brian View Post
    So what's new here?
    We only had the basic code tags before.
    There was no syntax highlighting which obviousally makes a big difference in code readability etc.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

  12. #11
    Junior Member
    Join Date
    Jun 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: New Syntax Highlighting Feature!

    very nice look and layout of the code .

  13. #12
    Junior Member
    Join Date
    May 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: New Syntax Highlighting Feature!

    It's really a great function!
    Thanks for all who worked for it...

  14. #13
    Member
    Join Date
    Apr 2010
    Location
    The Hague, Netherlands
    Posts
    91
    Thanks
    3
    Thanked 10 Times in 10 Posts

    Default Re: New Syntax Highlighting Feature!

    Awesome dude! helping eachother will be even easier and faster now

  15. #14
    Junior Member marksquall's Avatar
    Join Date
    Jan 2009
    Posts
    23
    My Mood
    Fine
    Thanks
    0
    Thanked 1 Time in 1 Post

    Smile Re: New Syntax Highlighting Feature!

    Great site with great and nice people. I am really fortunate to be a member of this forum. More power to the administrators and members of javaprogrammingforum.com.

    Warm regards,
    MarkSquall

  16. #15
    Junior Member
    Join Date
    Mar 2010
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: New Syntax Highlighting Feature!

    Great Now!!!

  17. #16
    Member
    Join Date
    Mar 2010
    Posts
    271
    Thanks
    21
    Thanked 7 Times in 7 Posts

    Default Re: New Syntax Highlighting Feature!

    Awesome!! It looks great!!!

  18. The Following User Says Thank You to Melawe For This Useful Post:

    JavaPF (July 14th, 2010)

Similar Threads

  1. Highlighting both row and column in JTable
    By bschneider14 in forum AWT / Java Swing
    Replies: 4
    Last Post: May 29th, 2010, 09:14 AM
  2. New give thanks feature
    By JavaPF in forum The Cafe
    Replies: 0
    Last Post: April 11th, 2009, 11:14 AM