Star formation in nearby galaxies