pg editor basics