插件地址:https://github.com/icodechef/Pure-Highlightjs
效果如下:
//SPI MODE = 3 #ifndef SPI_H_ #define SPI_H_ #include <msp430x14x.h> #define SI_1 (P6OUT |= BIT7) #define SI_0 (P6OUT &= ~BIT7) //P6.7 #define SO_1 (P6OUT |= BIT5) #define SO_0 (P6OUT &= ~BIT5) //P6.5 #define SCK_1 (P2OUT |= BIT2) #define SCK_0 (P2OUT &= ~BIT2) //P6.5 #define SS_1 (P6OUT |= BIT6) #define SS_0 (P6OUT &= ~BIT6) //P6.6 void Delay(void); void Init_SPI(void); void Writebyte(unsigned char wdata); unsigned char Readbyte(void); #endif
#include using namespace std; void main(void) { cout<<"Hello World"<<'\n'; }
public class HelloWorld { public static void main(String []args) { System.out.println("Hello World"); } }
public class HelloWorld {
public static void main(String []args) {
System.out.println("Hello World");
}
}
public class HelloWorld { public static void main(String []args) { System.out.println("Hello World"); } }
public class HelloWorld {
public static void main(String []args) {
System.out.println("Hello World");
}
}
public class HelloWorld {
public static void main(String []args) {
System.out.println("Hello Worl11111111111111111111111111111111111111111111111111d");
}
}
Enlighter 插件
public class HelloWorld { public static void main(String []args) { System.out.println("Hello World111111111111111111111111111111111111111111111111111111111111111111111111111111111111"); } }
测试标题
测试段落
/** * 加车方案查询 * @param customer 客户 * @param modelOutputDate 模型输出时间 * @param srcArea 始发地区 * @param desArea 目的地区 * @param isWorkday 是否工作日 * @param solutionId 解决方案ID * @param sort 排序字段 * @param order 排序方式 * @param pageSize 页面显示条目数量 * @param currentPage 查询的页码 * @return 页面对象 */ @ResponseBody @RequestMapping("/list") public PageHelperTool<TtAddVehicleSolution> list(String[] customer,String[] modelOutputDate, String srcArea, String desArea,String isWorkday,String solutionId, String sort, String order, String pageSize, String currentPage) { int totalCount = ttAddVehicleSolutionService.getTotalCount(customer, modelOutputDate, srcArea, desArea,isWorkday,solutionId); if(totalCount == 0) return null; //如果没有数据直接返回,避免后面的查询 PageHelperTool<TtAddVehicleSolution> pageHelper=new PageHelperTool<>(currentPage, pageSize, totalCount); List<TtAddVehicleSolution> list = ttAddVehicleSolutionService.list( customer, modelOutputDate, srcArea, desArea, isWorkday, solutionId, sort, order, pageHelper.getStartIndex(), pageHelper.getPageSize()); pageHelper.setList(list); return pageHelper; } 哈 哈
/** * 加车方案查询 * @param customer 客户 * @param modelOutputDate 模型输出时间 * @param srcArea 始发地区 * @param desArea 目的地区 * @param isWorkday 是否工作日 * @param solutionId 解决方案ID * @param sort 排序字段 * @param order 排序方式 * @param pageSize 页面显示条目数量 * @param currentPage 查询的页码 * @return 页面对象 */ @ResponseBody @RequestMapping("/list") public PageHelperTool<TtAddVehicleSolution> list(String[] customer,String[] modelOutputDate, String srcArea, String desArea,String isWorkday,String solutionId, String sort, String order, String pageSize, String currentPage) { int totalCount = ttAddVehicleSolutionService.getTotalCount(customer, modelOutputDate, srcArea, desArea,isWorkday,solutionId); if(totalCount == 0) return null; //如果没有数据直接返回,避免后面的查询 PageHelperTool<TtAddVehicleSolution> pageHelper=new PageHelperTool<>(currentPage, pageSize, totalCount); List<TtAddVehicleSolution> list = ttAddVehicleSolutionService.list( customer, modelOutputDate, srcArea, desArea, isWorkday, solutionId, sort, order, pageHelper.getStartIndex(), pageHelper.getPageSize()); pageHelper.setList(list); return pageHelper; }
这个插件不错