We describe a collisional radiative code to simulate the Ne-like and F-like resonance lines emitted from laser produced plasmas. Ions and excited levels densities are calculated by solving rate equations using an implicit-finite difference method for steady state, quasi steady state and time-dependent conditions. The code calculates intensities of Ne-like 1s(2)2S(2)2p(6) --> 1s(2)2S(2)2p(5) nl and F-like 1s(2)2S(2)p(5) --> 1s(2)2S(2)p(4)nl resonance lines emitted from various species, Z = 18 to 32, i.e., from argon to germanium. Intensities of photons emitted between Ne-like 1s(2)2S(2)p(5) n'l' --> 1s(2)2s(2)p(5) nl and F-like 1s(2)2s(2)2p(4) n'l' --> 1s(2)2s(2)2p(4) nl excited levels are also calculated. Doppler broadened line shapes are assumed. Absorption of resonance lines is determined using an escape factor approximation. The ratios of optically thin various F-like to Ne-like resonance lines are calculated with the aim that such ratios can serve as a diagnostic to measure electron temperatures. (C) 2004 Elsevier B.V. All rights reserved.