Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7489685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:21:14+00:00 2026-05-29T15:21:14+00:00

I created a project Sample Code… here I just paste sample code… much of

  • 0

I created a project “Sample Code”… here I just paste sample code… much of it is snippets that won’t compile.

Is there some project-specific setting I can make so that Eclipse doesn’t try to compile it?

I would prefer not to have the source code littered with red error markers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T15:21:15+00:00Added an answer on May 29, 2026 at 3:21 pm

    MY SOLUTION

    ok, this is not an exact solution to my problem… but it is another way to do it and I kinda like it now…

    I simply forget about using Eclipse to store the sample java files!

    I found a good program CodeBox for Mac to store code snippets and I’m sure there exist such things for Windows, Linux too…

    there interesting thing is that when I choose from this program to open the java snippet file (.java) in an external editor (Eclipse), it will open in Eclipse without any Syntax checking… wohoo! no squiggly lines

    Because of this, it is not full blown code highlighting… classes and variables same color… but that’s ok.. still quite readable. Much more than if it was in Eclipse with syntax highlighting running on it…

    So basically, if you want to get rid of these red squiggles… one way to do it is don’t keep sample .java (or other language) files in a project in Eclipse… simply keep them in the filesystem or code storage app and open them with Eclipse when you want to view them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a project from the ContactManager sample code and installed it on my
I created a project from ApiDemo sample code in Eclipse (in Windows 7) as
Okay, I was able to create a simple Windows Forms project that reproduces some
I created a sample project to disable the keyboard shortcuts of windows. Then I
I've created a small sample project to try to understand events. I want to
I had created a framework for a project in the past that one of
I found some sample code posted at https://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/4d45e9ea5471cba4/4519371a77ed4a74?hl=en&pli=1 for self installing a Windows Service.
Installed Tomcat 6 Installed Eclipse + GWT plugin Created GWT project with sample generated
I'm using the WindowsMedia library found here: http://www.ernzo.com/soundstudio.aspx The sample code had the ability
I just created a simple project with if statements to check if the statement

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.