A general strategy for the synthesis of porous, fluorescent, triazine-framework-based membranes with intrinsic porosity through an aromatic nitrile trimerization reaction is presented. The essence of this strategy lies in the use of a superacid to catalyze the cross-linking reaction efficiently at a low temperature, allowing porous polymer membrane architectures to be facilely derived. With functionalized triazine units, the membrane exhibits an increased selectivity for membrane separation of CO(2) over N(2). The good ideal CO(2)/N(2) selectivity of 29 ± 2 was achieved with a CO(2) permeability of 518 ± 25 barrer. Through this general synthesis protocol, a new class of porous polymer membranes with tunable functionalities and porosities can be derived, significantly expanding the currently limited library of polymers with intrinsic microporosity for synthesizing functional membranes in separation, catalysis, and energy storage/conversion.